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

Code Review | Admin Menu Class by 010Pixel

WordPress plugin Admin Menu Class by 010Pixel scored 100% 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: 5.9.2
  • 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,255 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by Admin Menu Class by 010Pixel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.23 ▲0.0361.43 ▼4.17
Dashboard /wp-admin4.05 ▲0.0237.82 ▼0.75
Posts /wp-admin/edit.php4.35 ▲0.0293.06 ▲51.65
Add New Post /wp-admin/post-new.php7.58 ▼0.01101.90 ▼1,174.66
Media Library /wp-admin/upload.php4.00 ▲0.0242.90 ▲12.17

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Admin Menu Class by 010Pixel: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5315.88 ▲0.537.49 ▲1.722.74 ▲0.69
Dashboard /wp-admin2,895 ▲356.12 ▲0.03127.10 ▼3.12164.14 ▼2.00
Posts /wp-admin/edit.php2,685 ▼33.24 ▼0.0172.33 ▲8.82155.52 ▲10.26
Add New Post /wp-admin/post-new.php1,695 ▼5720.64 ▼0.36572.34 ▲71.96194.98 ▲10.41
Media Library /wp-admin/upload.php1,695 ▲35.52 ▼0.02163.71 ▲16.24247.96 ▲23.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: 010pixel, dev, class, admin menu

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

"Admin Menu Class by 010Pixel" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin110 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP162142110

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
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

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