84% admin-menus-fixed

Code Review | Admin Menus Fixed

WordPress plugin Admin Menus Fixed scored84%from 54 tests.

About plugin

  • Plugin page: admin-menus-fixed
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.6
  • WordPress version: 6.3.1
  • First release: Mar 7, 2011
  • Latest release: Jun 23, 2018
  • Number of updates: 136
  • Update frequency: every 19.6 days
  • Top authors: spherical (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /18,253 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.43ms] Passed 4 tests

A check of server-side resources used by Admin Menus Fixed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.17 ▼3.34
Dashboard /wp-admin3.33 ▲0.0345.78 ▼7.21
Posts /wp-admin/edit.php3.38 ▲0.0344.78 ▼3.31
Add New Post /wp-admin/post-new.php5.93 ▲0.0582.37 ▼11.86
Media Library /wp-admin/upload.php3.26 ▲0.0336.11 ▼0.38

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Menus Fixed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.27 ▼1.321.51 ▼0.2941.88 ▼1.78
Dashboard /wp-admin2,229 ▲414.92 ▲0.03104.17 ▼3.1539.70 ▼1.28
Posts /wp-admin/edit.php2,109 ▲202.08 ▲0.0637.06 ▲1.2830.67 ▼2.98
Add New Post /wp-admin/post-new.php1,518 ▼1023.14 ▲5.06649.89 ▼30.8252.67 ▲0.21
Media Library /wp-admin/upload.php1,414 ▲324.25 ▲0.0694.95 ▼2.7539.91 ▼5.38

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
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 is_admin() in wp-content/plugins/admin-menus-fixed/fixedadminmenus.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 20 tag instead of maximum 10
The official readme.txt might help

admin-menus-fixed/fixedadminmenus.php 92% from 13 tests

The main PHP script in "Admin Menus Fixed" version 1.4 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("admin-menus-fixed.php" instead of "fixedadminmenus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin92 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP172278
CSS130013
JavaScript1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.74
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin