Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼151.86ms] Passed 4 tests
Server-side resources used by hiWeb AdmiMenu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 26.87 ▲2.22 |
Dashboard /wp-admin | 3.09 ▲0.03 | 33.87 ▼12.49 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 35.19 ▲2.29 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 71.51 ▼590.00 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 24.56 ▼7.15 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for hiWeb AdmiMenu
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,769 ▲118 | 16.47 ▲0.86 | 8.79 ▲2.92 | 75.36 ▼1.69 |
Dashboard /wp-admin | 3,031 ▲132 | 6.77 ▲0.76 | 133.53 ▲4.31 | 174.41 ▼0.20 |
Posts /wp-admin/edit.php | 2,843 ▲103 | 3.80 ▲0.57 | 79.54 ▲16.80 | 148.20 ▲11.88 |
Add New Post /wp-admin/post-new.php | 2,373 ▼1,434 | 16.29 ▼2.52 | 431.94 ▼14.55 | 161.49 ▼8.78 |
Media Library /wp-admin/upload.php | 1,852 ▲100 | 6.21 ▲0.67 | 161.19 ▲24.38 | 187.68 ▲0.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/hiweb-adminmenu/parts/wp_ajax_hw_adminmenu_edit_item.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiweb-adminmenu/hiweb-adminmenu.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Turn On Editor), #2 (Sort by Drag&Drop items), #3 (Hide Items)
- Tags: You are using too many tags: 23 tag instead of maximum 10
- Donate link: Invalid URI found ("")
hiweb-adminmenu/hiweb-adminmenu.php 92% from 13 tests
Analyzing the main PHP file in "hiWeb AdmiMenu" version 0.1
Please make the necessary changes and fix the following:
- Version: The plugin version was not found
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected721 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 56 | 21 | 312 |
Sass | 2 | 13 | 7 | 149 |
PHP | 3 | 24 | 20 | 134 |
CSS | 1 | 1 | 1 | 126 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
5 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 23.34KB | 12.07KB | ▼ 48.28% |
img/cursor_drag_1.png | 1.58KB | 0.91KB | ▼ 42.50% |
screenshot-2.png | 58.90KB | 24.31KB | ▼ 58.72% |
img/cursor_drag_2.png | 1.36KB | 0.58KB | ▼ 57.20% |
screenshot-1.png | 14.35KB | 7.97KB | ▼ 44.50% |