73% all-in-menu

Code Review | All In Menu - Header menu creator

WordPress plugin All In Menu - Header menu creator scored73%from 54 tests.

About plugin

  • Plugin page: all-in-menu
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.4.2
  • WordPress version: 6.3.1
  • First release: Sep 7, 2015
  • Latest release: Dec 18, 2016
  • Number of updates: 20
  • Update frequency: every 23.4 days
  • Top authors: cookforweb (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /21,004 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.25MB] [CPU: ▼4.58ms] Passed 4 tests

A check of server-side resources used by All In Menu - Header menu creator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2640.76 ▼1.85
Dashboard /wp-admin3.56 ▲0.2548.74 ▼0.19
Posts /wp-admin/edit.php3.67 ▲0.3156.15 ▲10.40
Add New Post /wp-admin/post-new.php6.14 ▲0.2582.74 ▼18.56
Media Library /wp-admin/upload.php3.48 ▲0.2536.30 ▲2.30

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables
md_metas
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for All In Menu - Header menu creator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14413.61 ▼0.978.42 ▲6.3843.27 ▼5.74
Dashboard /wp-admin2,218 ▲305.83 ▼0.07107.91 ▲8.2484.58 ▲43.16
Posts /wp-admin/edit.php2,110 ▲211.99 ▼0.0237.38 ▼0.4734.64 ▲0.35
Add New Post /wp-admin/post-new.php1,546 ▲1318.42 ▼4.76698.98 ▲75.7066.90 ▲14.22
Media Library /wp-admin/upload.php1,403 ▲124.23 ▲0.0295.41 ▼2.2377.68 ▲34.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • md_metas
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 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/all-in-menu/all-in-menu-settings.php:32

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 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
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

all-in-menu/all-in-menu.php 92% from 13 tests

The entry point to "All In Menu - Header menu creator" version 1.1.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,219 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS2741141,890
PHP25806891,403
JavaScript4103298926

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity73.50
▷ Minimum class complexity60.00
▷ Maximum class complexity87.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods57
▷ Static methods35.26%
▷ Public methods2849.12%
▷ Protected methods1322.81%
▷ Private methods1628.07%
Functions0
▷ Named functions00.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
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/plus.png0.93KB0.82KB▼ 11.34%
images/arrow.png2.99KB0.31KB▼ 89.67%
images/dragtab.png5.61KB3.62KB▼ 35.46%
images/checked.png2.84KB1.70KB▼ 40.15%
images/trash.png16.08KB5.34KB▼ 66.76%