84% simple-nested-menu

Code Review | Simple Nested Menu

WordPress plugin Simple Nested Menu scored84%from 54 tests.

About plugin

  • Plugin page: simple-nested-menu
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1+
  • WordPress version: 6.3.1
  • First release: Oct 30, 2018
  • Latest release: Oct 28, 2019
  • Number of updates: 26
  • Update frequency: every 14.0 days
  • Top authors: mostafadeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /585 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.23ms] Passed 4 tests

A check of server-side resources used by Simple Nested Menu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.77 ▼6.11
Dashboard /wp-admin3.32 ▲0.0247.31 ▼5.55
Posts /wp-admin/edit.php3.37 ▲0.0253.97 ▲0.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.02 ▼10.66
Media Library /wp-admin/upload.php3.24 ▲0.0234.30 ▼2.59

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Simple Nested Menu: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.34 ▲0.062.76 ▲0.7741.63 ▼0.98
Dashboard /wp-admin2,198 ▲245.65 ▼0.0388.19 ▲1.5739.07 ▼2.87
Posts /wp-admin/edit.php2,097 ▼02.15 ▲0.1838.83 ▲1.1235.04 ▼0.27
Add New Post /wp-admin/post-new.php1,537 ▲1118.18 ▼4.97631.12 ▼4.9561.72 ▲6.24
Media Library /wp-admin/upload.php1,394 ▼34.14 ▼0.0899.63 ▼2.8842.25 ▼3.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-nested-menu/simple-nested-menu.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% 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 your attention:
  • Tested up to: Version format is invalid
You can look at the official readme.txt

simple-nested-menu/simple-nested-menu.php Passed 13 tests

The primary PHP file in "Simple Nested Menu" version 1.0 is used by WordPress to initiate all plugin functionality
96 characters long description:
The Simple Nested Menu is a lightweight plugin for showing menu items in a pretty sliding style.

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 detected148 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS13069
PHP2142957
JavaScript10022

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin