79% simple-admin-menus

Code Review | Simple Admin Menus

WordPress plugin Simple Admin Menus scored79%from 54 tests.

About plugin

  • Plugin page: simple-admin-menus
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Mar 8, 2013
  • Latest release: Apr 1, 2016
  • Number of updates: 7
  • Update frequency: every 160.0 days
  • Top authors: ravidreams (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,405 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by Simple Admin Menus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.37 ▼1.79
Dashboard /wp-admin3.31 ▼0.0450.38 ▼20.12
Posts /wp-admin/edit.php3.36 ▲0.0045.95 ▼8.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.81 ▼19.33
Media Library /wp-admin/upload.php3.24 ▲0.0039.51 ▲1.84
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category3.0529.62

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Simple Admin Menus: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,627 ▼13414.33 ▼0.241.84 ▲0.1345.64 ▼1.61
Dashboard /wp-admin2,030 ▼1505.61 ▼0.1193.12 ▼8.8341.75 ▼3.97
Posts /wp-admin/edit.php1,938 ▼1621.96 ▲0.0135.58 ▼1.5933.22 ▼3.42
Add New Post /wp-admin/post-new.php1,395 ▼13123.57 ▲0.51670.88 ▼26.3265.82 ▼1.11
Media Library /wp-admin/upload.php1,238 ▼1624.20 ▲0.12104.70 ▼10.4347.11 ▼0.06
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category310.420.076.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-admin-menus/simple-admin-menus.php:40

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/edit-tags.php?taxonomy=link_category
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=link_category - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: wordpress admin, menu, menus, clutter

simple-admin-menus/simple-admin-menus.php Passed 13 tests

This is the main PHP file of "Simple Admin Menus" version 0.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
Hides unwanted menus in WordPress admin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152412

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin