83% al-admin-menu-toggle

Code Review | AL | Admin Menu Toggle

WordPress plugin AL | Admin Menu Toggle scored83%from 54 tests.

About plugin

  • Plugin page: al-admin-menu-toggle
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 4, 2015
  • Latest release: Oct 9, 2015
  • Number of updates: 28
  • Update frequency: every 5.3 days
  • Top authors: sudhakarc410 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /874 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by AL | Admin Menu Toggle
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.48 ▲4.83
Dashboard /wp-admin3.31 ▲0.0050.24 ▲1.17
Posts /wp-admin/edit.php3.36 ▲0.0050.34 ▲1.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.84 ▼12.32
Media Library /wp-admin/upload.php3.23 ▲0.0032.95 ▼4.33

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AL | Admin Menu Toggle
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1814.42 ▲0.071.82 ▼0.0544.19 ▲2.98
Dashboard /wp-admin2,213 ▲395.67 ▲0.1097.77 ▲6.1643.75 ▲0.01
Posts /wp-admin/edit.php2,118 ▲182.02 ▲0.0536.35 ▲2.7035.34 ▼1.93
Add New Post /wp-admin/post-new.php1,532 ▲423.06 ▼0.07643.32 ▲29.7856.01 ▲9.65
Media Library /wp-admin/upload.php1,415 ▲154.12 ▼0.0899.81 ▼4.9146.81 ▼2.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • 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
Everything seems fine, however this is by no means 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
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/al-admin-menu-toggle/admin-menu-toggle.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Contributors: The plugin tags were not defined
  • Contributors: Contributors not specified
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

al-admin-menu-toggle/admin-menu-toggle.php 92% from 13 tests

"AL | Admin Menu Toggle" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("al-admin-menu-toggle.php" instead of "admin-menu-toggle.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin53 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
3 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png142.36KB37.61KB▼ 73.58%
screenshot-3.png13.23KB6.93KB▼ 47.60%
screenshot-2.png26.54KB5.30KB▼ 80.02%