Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼293.49ms] Passed 4 tests
An overview of server-side resources used by Adminimal
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.04 | 54.91 ▲7.62 |
Dashboard /wp-admin | 3.43 ▲0.02 | 32.78 ▼1.56 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 38.30 ▲0.44 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 95.17 ▼1,176.44 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 29.09 ▲3.60 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Adminimal
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,973 ▲219 | 16.16 ▲0.90 | 10.28 ▲4.28 | 33.34 ▲30.60 |
Dashboard /wp-admin | 2,929 ▲71 | 6.18 ▲0.11 | 117.44 ▼20.95 | 166.08 ▲0.88 |
Posts /wp-admin/edit.php | 2,730 ▲36 | 3.13 ▼0.12 | 64.00 ▼0.51 | 138.08 ▼5.96 |
Add New Post /wp-admin/post-new.php | 1,990 ▲301 | 21.31 ▲0.16 | 445.34 ▲4.56 | 161.81 ▲4.81 |
Media Library /wp-admin/upload.php | 1,739 ▲41 | 5.64 ▲0.12 | 139.26 ▼2.94 | 211.62 ▲26.38 |
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 successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/adminimal/inc/adminimal.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adminimal/inc/style.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adminimal/index.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adminimal/inc/settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/adminimal/pages/adminimal-settings.php:7
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in adminimal/assets to your readme.txt
adminimal/index.php 85% from 13 tests
Analyzing the main PHP file in "Adminimal" version 0.7.1
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("adminimal.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin493 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 3 | 39 | 41 | 168 |
PHP | 6 | 50 | 49 | 151 |
CSS | 1 | 29 | 0 | 132 |
Markdown | 1 | 6 | 0 | 27 |
SVG | 1 | 0 | 1 | 9 |
JavaScript | 1 | 0 | 3 | 6 |
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.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin