84% easy-admin-menu-by-corpsoft-solutions

Code Review | Easy Admin Menu By Corpsoft Solutions

WordPress plugin Easy Admin Menu By Corpsoft Solutions scored84%from 54 tests.

About plugin

  • Plugin page: easy-admin-menu-b...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2020
  • Latest release: Oct 28, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: corpsoftsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.53ms] Passed 4 tests

This is a short check of server-side resources used by Easy Admin Menu By Corpsoft Solutions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.68 ▼1.41
Dashboard /wp-admin3.31 ▲0.0056.27 ▲2.87
Posts /wp-admin/edit.php3.36 ▲0.0048.76 ▼5.50
Add New Post /wp-admin/post-new.php5.89 ▲0.00101.60 ▼6.71
Media Library /wp-admin/upload.php3.23 ▲0.0036.37 ▼0.50

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Easy Admin Menu By Corpsoft Solutions: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,721 ▼4014.17 ▲0.012.78 ▲1.2344.19 ▲2.51
Dashboard /wp-admin2,120 ▼575.58 ▼0.0790.47 ▲3.0038.86 ▼7.24
Posts /wp-admin/edit.php2,025 ▼782.02 ▼0.0137.57 ▼7.2533.24 ▼5.44
Add New Post /wp-admin/post-new.php1,529 ▲123.15 ▲0.09628.87 ▲7.8154.19 ▲9.10
Media Library /wp-admin/upload.php1,323 ▼774.16 ▼0.0498.18 ▼7.8537.75 ▼5.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 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/easy-admin-menu-by-corpsoft-solutions/index.php:82

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)
Everything seems fine on the user side

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
5 plugin tags: hide admin menu, clean admin menu, admin panel, hide menu for users, admin menu

easy-admin-menu-by-corpsoft-solutions/index.php 92% from 13 tests

The main file in "Easy Admin Menu By Corpsoft Solutions" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-admin-menu-by-corpsoft-solutions.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected73 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12973

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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
No PNG files were detected