89% menu-option

Code Review | Menu Option

WordPress plugin Menu Option scored89%from 54 tests.

About plugin

  • Plugin page: menu-option
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 3, 2021
  • Latest release: Aug 15, 2023
  • Number of updates: 15
  • Update frequency: every 41.3 days
  • Top authors: tusharkapdi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,124 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.05MB] [CPU: ▼7.64ms] Passed 4 tests

A check of server-side resources used by Menu Option
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.34 ▼8.49
Dashboard /wp-admin3.35 ▲0.0554.84 ▼19.21
Posts /wp-admin/edit.php3.41 ▲0.0551.95 ▲2.19
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.97 ▼4.66
Media Library /wp-admin/upload.php3.28 ▲0.0539.51 ▲1.80

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Menu Option
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.65 ▲0.301.59 ▼0.2343.42 ▼1.75
Dashboard /wp-admin2,195 ▲185.61 ▼0.1592.09 ▼11.5943.32 ▼1.45
Posts /wp-admin/edit.php2,103 ▲32.14 ▲0.1140.60 ▲0.5836.00 ▼2.72
Add New Post /wp-admin/post-new.php1,526 ▼1323.16 ▲5.21642.30 ▼4.3864.11 ▼11.76
Media Library /wp-admin/upload.php1,400 ▼04.27 ▲0.0497.41 ▼10.1441.78 ▼5.19

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: Please specify the plugin name on the first line ( === menu-option === )
The official readme.txt might help

menu-option/menu-option.php 92% from 13 tests

The main PHP script in "Menu Option" version 1.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin245 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP46587193
JavaScript15026
PO File17726

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.50
▷ Minimum class complexity3.00
▷ Maximum class complexity32.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods11
▷ Static methods218.18%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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