74% easy-accordion-menu

Code Review | Easy Accordion Menu

WordPress plugin Easy Accordion Menu scored74%from 54 tests.

About plugin

  • Plugin page: easy-accordion-menu
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 20, 2021
  • Latest release: Feb 20, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: Sannikov1994 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /463 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.94MB] [CPU: ▼58.06ms] Passed 4 tests

Server-side resources used by Easy Accordion Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.424.96 ▼32.11
Dashboard /wp-admin2.06 ▼1.246.23 ▼43.95
Posts /wp-admin/edit.php2.06 ▼1.296.65 ▼50.25
Add New Post /wp-admin/post-new.php2.06 ▼3.825.24 ▼105.94
Media Library /wp-admin/upload.php2.06 ▼1.165.82 ▼31.46

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Accordion Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.27 ▼0.132.25 ▲0.6341.75 ▼2.53
Dashboard /wp-admin2,194 ▲175.62 ▼0.03100.74 ▲1.7938.84 ▼2.45
Posts /wp-admin/edit.php2,105 ▲81.98 ▼0.0040.26 ▲4.2838.10 ▲0.90
Add New Post /wp-admin/post-new.php1,528 ▼023.43 ▲0.31674.89 ▲59.7156.24 ▲3.70
Media Library /wp-admin/upload.php1,405 ▲54.16 ▼0.04101.63 ▲0.1044.01 ▼2.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the easy-accordion-menu handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/easy-accordion-menu/easy-accordion-menu.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
There were not plugin tags detected

easy-accordion-menu/easy-accordion-menu.php 92% from 13 tests

The principal PHP file in "Easy Accordion Menu" v. 0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 211 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected38 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1231226
PHP1102312

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin