88% admin-menu-slide

Code Review | Admin Menu Slide

WordPress plugin Admin Menu Slide scored 88% from 54 tests.

About plugin

  • Plugin page: admin-menu-slide
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.3
  • WordPress version: 5.9.2
  • First release: Jul 30, 2015
  • Latest release: Jul 30, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: helium-3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,382 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼290.28ms] Passed 4 tests

Analyzing server-side resources used by Admin Menu Slide
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.29 ▲2.71
Dashboard /wp-admin3.49 ▲0.0939.12 ▲7.31
Posts /wp-admin/edit.php3.72 ▲0.0839.29 ▲3.98
Add New Post /wp-admin/post-new.php6.96 ▼0.0198.69 ▼1,170.51
Media Library /wp-admin/upload.php3.37 ▲0.0825.71 ▲2.69
Admin Menu Slide /wp-admin/options-general.php?page=admin-menu-slide3.3422.94

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 2 new options
New WordPress options
admin-menu-slide-info
admin-menu-slide-settings

Browser metrics Passed 4 tests

Checking browser requirements for Admin Menu Slide
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,877 ▲12316.01 ▲0.405.96 ▼0.612.13 ▼0.31
Dashboard /wp-admin2,982 ▲1246.20 ▲0.03117.19 ▼15.02158.29 ▼5.55
Posts /wp-admin/edit.php2,785 ▲913.26 ▲0.0367.21 ▲3.53146.12 ▲0.61
Add New Post /wp-admin/post-new.php1,756 ▲9518.10 ▲1.75388.24 ▼65.14157.01 ▼0.90
Media Library /wp-admin/upload.php1,792 ▲945.59 ▲0.05149.48 ▲14.85187.25 ▲3.70
Admin Menu Slide /wp-admin/options-general.php?page=admin-menu-slide1,1702.4356.42141.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% 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 0% 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
Please fix the following items
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/admin-menu-slide/includes/php/index.php
    • > /wp-content/plugins/admin-menu-slide/includes/images/index.php
    • > /wp-content/plugins/admin-menu-slide/includes/css/index.php
    • > /wp-content/plugins/admin-menu-slide/includes/js/index.php
    • > /wp-content/plugins/admin-menu-slide/includes/icons/index.php
    • > /wp-content/plugins/admin-menu-slide/includes/index.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/admin-menu-slide/settings.php:16

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
You can look at the official readme.txt

admin-menu-slide/index.php 92% from 13 tests

"Admin Menu Slide" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("admin-menu-slide.php" instead of "index.php")

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
No dangerous file extensions were detected663 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP714671256
CSS2523208
SVG224100
JavaScript142999

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.00
▷ Minimum class complexity4.00
▷ Maximum class complexity19.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/images/windowpress.png86.66KB27.76KB▼ 67.97%