84% everything-accordion

Code Review | Everything Accordion

WordPress plugin Everything Accordion scored84%from 54 tests.

About plugin

  • Plugin page: everything-accordion
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1+
  • WordPress version: 6.3.1
  • First release: Aug 23, 2018
  • Latest release: Jun 27, 2020
  • Number of updates: 21
  • Update frequency: every 32.1 days
  • Top authors: mostafadeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /637 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.41ms] Passed 4 tests

This is a short check of server-side resources used by Everything Accordion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1344.15 ▲0.50
Dashboard /wp-admin3.41 ▲0.1045.01 ▼1.39
Posts /wp-admin/edit.php3.46 ▲0.1046.89 ▲0.55
Add New Post /wp-admin/post-new.php5.99 ▲0.1084.06 ▼9.29
Media Library /wp-admin/upload.php3.33 ▲0.1036.83 ▲1.33

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_evac_everything_accordion
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Everything Accordion
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲17813.80 ▼0.575.95 ▲3.8438.52 ▼12.63
Dashboard /wp-admin2,209 ▲184.89 ▼0.02118.43 ▲12.1544.81 ▼1.56
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0039.10 ▲1.5436.09 ▼0.54
Add New Post /wp-admin/post-new.php1,543 ▲2418.44 ▼4.50615.79 ▼44.3353.72 ▲0.39
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.00102.23 ▲2.4140.66 ▼2.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_evac_everything_accordion
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/everything-accordion/everything-accordion.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tested up to: Version not formatted correctly
You can look at the official readme.txt

everything-accordion/everything-accordion.php Passed 13 tests

The main PHP file in "Everything Accordion" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
113 characters long description:
The Everything Accordion is a simple widget that shows wordpress widgets, posts and pages in an pretty accordion.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected446 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP21254361
CSS14079
JavaScript1005
HTML1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity88.00
▷ Minimum class complexity88.00
▷ Maximum class complexity88.00
Average method complexity11.88
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected