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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 53.29 ▲2.71 |
Dashboard /wp-admin | 3.49 ▲0.09 | 39.12 ▲7.31 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 39.29 ▲3.98 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 98.69 ▼1,170.51 |
Media Library /wp-admin/upload.php | 3.37 ▲0.08 | 25.71 ▲2.69 |
Admin Menu Slide /wp-admin/options-general.php?page=admin-menu-slide | 3.34 | 22.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,877 ▲123 | 16.01 ▲0.40 | 5.96 ▼0.61 | 2.13 ▼0.31 |
Dashboard /wp-admin | 2,982 ▲124 | 6.20 ▲0.03 | 117.19 ▼15.02 | 158.29 ▼5.55 |
Posts /wp-admin/edit.php | 2,785 ▲91 | 3.26 ▲0.03 | 67.21 ▲3.53 | 146.12 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,756 ▲95 | 18.10 ▲1.75 | 388.24 ▼65.14 | 157.01 ▼0.90 |
Media Library /wp-admin/upload.php | 1,792 ▲94 | 5.59 ▲0.05 | 149.48 ▲14.85 | 187.25 ▲3.70 |
Admin Menu Slide /wp-admin/options-general.php?page=admin-menu-slide | 1,170 | 2.43 | 56.42 | 141.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 146 | 71 | 256 |
CSS | 2 | 52 | 3 | 208 |
SVG | 2 | 2 | 4 | 100 |
JavaScript | 1 | 42 | 9 | 99 |
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 code | 0.29 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/windowpress.png | 86.66KB | 27.76KB | ▼ 67.97% |