90% simple-menu

Code Review | Simple Menu

WordPress plugin Simple Menu scored90%from 54 tests.

About plugin

  • Plugin page: simple-menu
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Jan 28, 2018
  • Latest release: Jan 28, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: Annubis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /576 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Simple Menu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.81 ▼0.47
Dashboard /wp-admin3.31 ▲0.0145.07 ▼5.35
Posts /wp-admin/edit.php3.36 ▲0.0145.16 ▼7.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.57 ▼14.35
Media Library /wp-admin/upload.php3.23 ▲0.0036.95 ▲2.80
All Comments /wp-admin/edit-comments.php3.3040.01

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,443 ▼29214.19 ▼0.191.88 ▲0.1643.13 ▼13.63
Dashboard /wp-admin1,852 ▼3365.56 ▼0.3484.92 ▼22.1336.27 ▼4.33
Posts /wp-admin/edit.php1,875 ▼2172.03 ▲0.0138.05 ▼3.5033.84 ▼4.45
Add New Post /wp-admin/post-new.php1,356 ▼16323.11 ▼0.17602.20 ▼34.0952.63 ▼0.11
Media Library /wp-admin/upload.php1,165 ▼2234.21 ▼0.0196.42 ▼2.6840.00 ▼3.59
All Comments /wp-admin/edit-comments.php1,5772.2736.9335.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: The official readme.txt is a good inspiration

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

"Simple Menu" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Hide all non-essential and confusing Items from Admin Menu.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121430

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
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