Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼8.35ms] Passed 4 tests
A check of server-side resources used by WP Admin Notification
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 34.40 ▼11.11 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.68 ▼4.08 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 46.51 ▲2.37 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 80.45 ▼16.41 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 31.95 ▼1.80 |
Add New /wp-admin/post-new.php?post_type=notification | 3.39 | 45.00 |
Notification /wp-admin/edit.php?post_type=notification | 3.32 | 42.02 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Admin Notification
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲74 | 13.32 ▼1.06 | 1.60 ▼0.42 | 38.00 ▼7.98 |
Dashboard /wp-admin | 2,248 ▲60 | 4.88 ▲0.02 | 103.14 ▼13.14 | 39.84 ▼2.12 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.23 ▲0.23 | 41.50 ▲3.37 | 35.01 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,550 ▲36 | 23.29 ▲5.77 | 586.94 ▼31.35 | 65.04 ▲14.59 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.31 ▲0.15 | 99.00 ▲0.87 | 41.80 ▼0.38 |
Add New /wp-admin/post-new.php?post_type=notification | 2,246 | 7.75 | 187.88 | 64.33 |
Notification /wp-admin/edit.php?post_type=notification | 1,092 | 2.17 | 32.04 | 31.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-admin-notification/wp-admin-notification.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Editing Message.), #2 (Show Message.), #3 (Show checking user)
wp-admin-notification/wp-admin-notification.php Passed 13 tests
The principal PHP file in "WP Admin Notification" v. 1.0 is loaded by WordPress automatically on each request
31 characters long description:
Show message from administrator
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin236 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 49 | 20 | 176 |
PO File | 1 | 8 | 13 | 27 |
JavaScript | 1 | 1 | 0 | 20 |
Markdown | 1 | 7 | 0 | 13 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 1 | 8.33% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
4 PNG files occupy 0.45MB with 0.25MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 267.62KB | 92.28KB | ▼ 65.52% |
screenshot-2.png | 104.15KB | 35.02KB | ▼ 66.38% |
screenshot-3.png | 89.75KB | 30.36KB | ▼ 66.17% |
img/check.png | 1.01KB | 0.76KB | ▼ 24.71% |