89% faq-elementor

Code Review | Faq elementor addon

WordPress plugin Faq elementor addon scored89%from 54 tests.

About plugin

  • Plugin page: faq-elementor
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Aug 14, 2020
  • Latest release: Oct 22, 2020
  • Number of updates: 8
  • Update frequency: every 8.6 days
  • Top authors: quazisazzad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /715 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.32ms] Passed 4 tests

An overview of server-side resources used by Faq elementor addon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.88 ▼0.51
Dashboard /wp-admin3.33 ▼0.0244.02 ▼10.38
Posts /wp-admin/edit.php3.38 ▲0.0245.13 ▲0.10
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.86 ▼6.48
Media Library /wp-admin/upload.php3.25 ▲0.0234.69 ▲3.74

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Faq elementor addon: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.57 ▼1.111.82 ▼0.0842.64 ▲2.18
Dashboard /wp-admin2,227 ▲354.87 ▼0.06108.35 ▼1.1539.60 ▼2.01
Posts /wp-admin/edit.php2,109 ▲202.03 ▲0.0141.37 ▲4.5238.34 ▲6.64
Add New Post /wp-admin/post-new.php1,541 ▲818.55 ▼4.66602.79 ▲13.2655.06 ▲5.47
Media Library /wp-admin/upload.php1,403 ▲184.21 ▲0.0398.19 ▼2.9442.52 ▲1.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (/assets/screenshot-1.png), #2 (/assets/screenshot-2.png), #3 (/assets/screenshot-3.png), #4 (/assets/screenshot-4.png), #5 (/assets/screenshot-5.png), #6 (/assets/screenshot-7.png)
The official readme.txt might help

faq-elementor/faq.php 85% from 13 tests

The main PHP file in "Faq elementor addon" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("faq-elementor.php" instead of "faq.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected492 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4128161333
CSS1160159

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.00
▷ Minimum class complexity3.00
▷ Maximum class complexity9.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods13
▷ Static methods17.69%
▷ Public methods1184.62%
▷ Protected methods215.38%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin