Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.27ms] Passed 4 tests
A check of server-side resources used by Admin User Message
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.59 ▲4.27 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.23 ▼4.70 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.02 ▼3.09 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.11 ▼16.69 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.85 ▲3.41 |
Admin User Message /wp-admin/options-general.php?page=admin-user-message | 3.26 | 32.24 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Admin User Message
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.75 ▼0.63 | 1.71 ▼0.48 | 44.51 ▲5.18 |
Dashboard /wp-admin | 2,213 ▲24 | 5.86 ▼0.03 | 101.50 ▼1.38 | 37.72 ▼8.15 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.02 | 37.02 ▲1.57 | 32.56 ▼2.15 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 22.88 ▼0.26 | 653.18 ▲9.61 | 67.84 ▲13.68 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▲0.06 | 93.43 ▼6.76 | 42.13 ▼1.30 |
Admin User Message /wp-admin/options-general.php?page=admin-user-message | 1,293 | 5.41 | 102.43 | 49.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test
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 server-side errors or warnings when accessed directly:
- > 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 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: message, admin
admin-user-message/admin-user-message.php 92% from 13 tests
The principal PHP file in "Admin User Message" v. 0.0.9 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were 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
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected