Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼293.79ms] Passed 4 tests
Server-side resources used by Admin Loaded Display
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 57.24 ▲5.86 |
Dashboard /wp-admin | 3.42 ▲0.02 | 33.53 ▼2.08 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 37.90 ▼1.59 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 95.79 ▼1,171.53 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 25.32 ▲0.04 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Admin Loaded Display
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,935 ▲190 | 16.24 ▲0.49 | 9.20 ▲3.41 | 2.89 ▲0.64 |
Dashboard /wp-admin | 2,902 ▲44 | 6.04 ▼0.12 | 120.65 ▼15.40 | 158.42 ▼2.90 |
Posts /wp-admin/edit.php | 2,702 ▲8 | 3.24 ▲0.01 | 64.56 ▼0.59 | 138.75 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,679 ▼73 | 16.75 ▼4.76 | 409.81 ▼26.33 | 160.19 ▲2.65 |
Media Library /wp-admin/upload.php | 1,712 ▲14 | 5.56 ▲0.03 | 137.79 ▲1.60 | 195.22 ▲7.49 |
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 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/admin-loaded-display/classes/class-collect-the-registered-scripts.php
- > /wp-content/plugins/admin-loaded-display/admin-loaded-display.php
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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: loaded styles, loaded scripts
admin-loaded-display/admin-loaded-display.php Passed 13 tests
"Admin Loaded Display" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
Adds a button to the admin bar that displays the loaded scripts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin163 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 22 | 53 | 66 |
JavaScript | 1 | 20 | 14 | 62 |
CSS | 1 | 4 | 2 | 35 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 2.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 | 2 | |
▷ Static methods | 2 | 100.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 157.82KB | 39.96KB | ▼ 74.68% |
assets/icon-128x128.png | 34.96KB | 9.72KB | ▼ 72.20% |