Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.04ms] Passed 4 tests
An overview of server-side resources used by Admin Menu Slide
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.83 ▼1.84 |
Dashboard /wp-admin | 3.34 ▲0.03 | 64.51 ▲9.24 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.98 ▼1.47 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.90 ▼5.93 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.97 ▲1.10 |
Admin Menu Slide /wp-admin/options-general.php?page=admin-menu-slide | 3.23 | 31.58 |
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, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
admin-menu-slide-settings |
widget_recent-comments |
admin-menu-slide-info |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Admin Menu Slide
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲92 | 14.24 ▼0.02 | 1.89 ▲0.18 | 43.30 ▼1.09 |
Dashboard /wp-admin | 2,234 ▲60 | 5.62 ▲0.09 | 95.20 ▼7.12 | 43.06 ▲0.26 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.05 ▲0.03 | 37.70 ▲2.48 | 38.54 ▼0.22 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.16 ▼0.02 | 674.91 ▲63.59 | 59.74 ▲7.39 |
Media Library /wp-admin/upload.php | 1,439 ▲36 | 4.22 ▲0.00 | 110.33 ▲11.87 | 45.15 ▲1.30 |
Admin Menu Slide /wp-admin/options-general.php?page=admin-menu-slide | 874 | 2.06 | 27.65 | 30.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/admin-menu-slide/includes/php/index.php
- > /wp-content/plugins/admin-menu-slide/includes/index.php
- > /wp-content/plugins/admin-menu-slide/includes/icons/index.php
- > /wp-content/plugins/admin-menu-slide/includes/images/index.php
- > /wp-content/plugins/admin-menu-slide/includes/js/index.php
- > /wp-content/plugins/admin-menu-slide/includes/css/index.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > 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 shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
admin-menu-slide/index.php 92% from 13 tests
Analyzing the main PHP file in "Admin Menu Slide" version 1.0
The following require your attention:
- Main file name: It is recommended to name the main PHP file 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin663 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
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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
All PNG images should be compressed to minimize bandwidth usage for end users
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% |