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.00MB] [CPU: ▼288.13ms] Passed 4 tests
An overview of server-side resources used by Admin User Message
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 53.46 ▲3.41 |
Dashboard /wp-admin | 3.45 ▲0.04 | 34.40 ▲1.14 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 43.30 ▲5.91 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 100.28 ▼1,154.30 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 23.89 ▼2.75 |
Admin User Message /wp-admin/options-general.php?page=admin-user-message | 3.33 | 24.64 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Admin User Message
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 15.74 ▲0.16 | 6.52 ▲0.48 | 2.60 ▼1.35 |
Dashboard /wp-admin | 2,897 ▲36 | 6.10 ▼0.07 | 116.10 ▼18.17 | 156.38 ▼7.57 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.24 ▲0.00 | 64.12 ▼2.08 | 135.65 ▼9.92 |
Add New Post /wp-admin/post-new.php | 1,671 ▼87 | 19.38 ▼1.88 | 384.24 ▼37.22 | 158.12 ▲2.45 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.50 ▼0.04 | 146.77 ▲8.57 | 188.22 ▲4.47 |
Admin User Message /wp-admin/options-general.php?page=admin-user-message | 1,593 | 6.43 | 125.91 | 167.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-user-message/admin-user-message.php:396
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: message, admin
admin-user-message/admin-user-message.php 92% from 13 tests
"Admin User Message" version 0.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin841 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 86 | 117 | 471 |
Bourne Again Shell | 2 | 45 | 25 | 193 |
Markdown | 3 | 37 | 0 | 84 |
PO File | 1 | 14 | 17 | 44 |
YAML | 2 | 6 | 0 | 43 |
XML | 1 | 3 | 0 | 6 |
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.27 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 15 | 88.24% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.76% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
There are no PNG files in this plugin