Benchmarks
Plugin footprint 83% from 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.00MB] [CPU: ▼10.18ms] Passed 4 tests
A check of server-side resources used by WP Admin Notice
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.79 ▼0.16 |
Dashboard /wp-admin | 3.31 ▼0.03 | 51.58 ▼14.85 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.42 ▼6.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.96 ▼18.85 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 41.00 ▲4.28 |
WP Admin Notice /wp-admin/options-general.php?page=wp-admin-notice/wp-admin-notice.php | 3.26 | 34.94 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Admin Notice
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.72 ▲0.37 | 1.64 ▼0.04 | 43.38 ▲2.91 |
Dashboard /wp-admin | 2,221 ▲41 | 4.81 ▼0.91 | 97.04 ▼11.24 | 41.89 ▼2.56 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.30 ▲0.29 | 39.45 ▼2.32 | 34.99 ▼3.13 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 23.23 ▲0.15 | 681.02 ▲63.90 | 39.22 ▼8.88 |
Media Library /wp-admin/upload.php | 1,423 ▲20 | 4.43 ▲0.24 | 98.47 ▼4.78 | 43.20 ▼0.52 |
WP Admin Notice /wp-admin/options-general.php?page=wp-admin-notice/wp-admin-notice.php | 1,092 | 2.50 | 41.53 | 26.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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
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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-admin-notice/options-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-admin-notice/wp-admin-notice.php:29
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Screenshot #1 (/screenshot-1.png) image missing
wp-admin-notice/wp-admin-notice.php Passed 13 tests
The main PHP file in "WP Admin Notice" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
63 characters long description:
This plugin allows you to show a simple notice to alert admins.
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
Everything looks great! No dangerous files found in this plugin192 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 46 | 70 | 182 |
JavaScript | 1 | 1 | 2 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 9 | |
▷ Named functions | 9 | 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 31.05KB | 12.58KB | ▼ 59.48% |