84% mean-menu-refueled

Code Review | Mean Menu Refueled

WordPress plugin Mean Menu Refueled scored84%from 54 tests.

About plugin

  • Plugin page: mean-menu-refueled
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.8
  • WordPress version: 6.3.1
  • First release: Oct 1, 2021
  • Latest release: Nov 7, 2021
  • Number of updates: 9
  • Update frequency: every 4.1 days
  • Top authors: jweathe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /444 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Mean Menu Refueled
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0422.01 ▼19.05
Dashboard /wp-admin3.35 ▲0.0046.59 ▼21.65
Posts /wp-admin/edit.php3.40 ▲0.0454.30 ▲6.03
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.74 ▼19.00
Media Library /wp-admin/upload.php3.27 ▲0.0437.63 ▼0.99

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Mean Menu Refueled
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲10313.26 ▼1.041.97 ▲0.1938.83 ▼3.11
Dashboard /wp-admin2,221 ▲174.86 ▼0.02114.41 ▲4.4643.99 ▲7.48
Posts /wp-admin/edit.php2,100 ▲32.05 ▲0.0441.32 ▲5.4237.04 ▲1.95
Add New Post /wp-admin/post-new.php1,545 ▲1423.22 ▲0.25676.84 ▲25.1871.46 ▲19.75
Media Library /wp-admin/upload.php1,403 ▲34.26 ▲0.1096.07 ▼7.4543.81 ▲0.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function planetjon\\mean_menu_refueled\\add_action() in wp-content/plugins/mean-menu-refueled/plugin.php:41

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 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: responsive, mobile, navigation, menu

mean-menu-refueled/plugin.php 85% from 13 tests

The entry point to "Mean Menu Refueled" version 1.3.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.0.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mean-menu-refueled.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected516 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33714175
HTML130118
CSS2140103
PHP1141374
Markdown113046

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.62
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
Namespaces1
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 functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin