Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/adminpage-helper/admin_helper.php+1154
Declaration of ah_posts_Table::prepare_items($posts) should be compatible with WP_List_Table::prepare_items()
Server metrics [RAM: ▼2.53MB] [CPU: ▼376.80ms] Passed 4 tests
Analyzing server-side resources used by Admin Helper
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.84 ▼1.68 | 4.24 ▼46.64 |
Dashboard /wp-admin | 1.86 ▼1.55 | 3.99 ▼29.18 |
Posts /wp-admin/edit.php | 1.86 ▼1.78 | 3.24 ▼34.03 |
Add New Post /wp-admin/post-new.php | 1.86 ▼5.11 | 3.40 ▼1,397.35 |
Media Library /wp-admin/upload.php | 1.86 ▼1.44 | 3.57 ▼19.66 |
Server storage [IO: ▲0.05MB] [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: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Admin Helper
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,791 ▲37 | 16.50 ▲0.54 | 6.53 ▼0.38 | 2.35 ▼0.24 |
Dashboard /wp-admin | 2,917 ▲59 | 6.91 ▲0.79 | 118.39 ▼19.47 | 151.75 ▼10.04 |
Posts /wp-admin/edit.php | 2,718 ▲30 | 3.30 ▲0.07 | 63.94 ▲1.50 | 141.39 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,684 ▲23 | 16.06 ▼6.58 | 405.07 ▼10.67 | 154.33 ▼2.88 |
Media Library /wp-admin/upload.php | 1,722 ▲24 | 5.89 ▲0.38 | 127.15 ▼21.62 | 185.17 ▲1.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/adminpage-helper/admin_helper.php+1154
Declaration of ah_posts_Table::prepare_items($posts) should be compatible with WP_List_Table::prepare_items()
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/adminpage-helper/admin_helper.php on line 1038
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/adminpage-helper/admin_helper.php on line 1038
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/adminpage-helper/admin_helper.php on line 1038
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: admin pages, framework, custom media, custom type, custom taxonomy
adminpage-helper/admin_helper.php 92% from 13 tests
"Admin Helper" version 0.83's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("adminpage-helper.php" instead of "admin_helper.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
Success! There were no dangerous files found in this plugin919 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 200 | 171 | 904 |
CSS | 1 | 5 | 1 | 15 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 51 | |
▷ Named functions | 51 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin