90% admin-menu-class-by-010pixel

Code Review | Admin Menu Class by 010Pixel

WordPress plugin Admin Menu Class by 010Pixel scored90%from 54 tests.

About plugin

  • Plugin page: admin-menu-class-...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.9
  • WordPress version: 6.3.1
  • First release: Feb 18, 2015
  • Latest release: Aug 3, 2018
  • Number of updates: 20
  • Update frequency: every 63.1 days
  • Top authors: 010pixel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,496 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Admin Menu Class by 010Pixel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.50 ▲1.20
Dashboard /wp-admin3.32 ▼0.0250.98 ▼14.13
Posts /wp-admin/edit.php3.37 ▲0.0248.62 ▲0.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.20 ▼9.35
Media Library /wp-admin/upload.php3.25 ▲0.0232.70 ▼4.64

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Menu Class by 010Pixel
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.50 ▲0.121.70 ▲0.0843.17 ▼3.74
Dashboard /wp-admin2,198 ▲235.62 ▼0.1587.20 ▼13.9939.76 ▼5.16
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0333.16 ▼2.0535.20 ▲0.03
Add New Post /wp-admin/post-new.php1,554 ▲2818.36 ▲0.80632.56 ▼28.3259.78 ▼3.18
Media Library /wp-admin/upload.php1,397 ▼04.25 ▲0.0499.58 ▼3.6842.75 ▼3.17

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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 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
No output text or server-side errors detected 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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: dev, 010pixel, class, admin menu

admin-menu-class-by-010pixel/admin_menu_class_by_010pixel.php 92% from 13 tests

The main PHP file in "Admin Menu Class by 010Pixel" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("admin-menu-class-by-010pixel.php" instead of "admin_menu_class_by_010pixel.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin110 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP162142110

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.87
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity6.20
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
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
PNG images were not found in this plugin