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.01MB] [CPU: ▼1.16ms] Passed 4 tests
Server-side resources used by Show notice or message on admin area
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.95 ▲5.64 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.06 ▼3.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.41 ▲0.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.20 ▲1.45 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 33.40 ▼2.58 |
Notice on Dashboard /wp-admin/options-general.php?page=sna-a-dashboard | 3.20 | 30.84 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
urgnt_notice |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
nrml_notice |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Show notice or message on admin area
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.25 ▼1.05 | 1.77 ▲0.18 | 44.74 ▲4.40 |
Dashboard /wp-admin | 2,244 ▲59 | 5.89 ▲1.00 | 98.32 ▼3.84 | 38.12 ▼4.92 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.06 ▲0.09 | 37.93 ▼4.54 | 34.86 ▲2.61 |
Add New Post /wp-admin/post-new.php | 1,561 ▲42 | 23.48 ▲0.02 | 628.18 ▼40.56 | 56.38 ▲1.17 |
Media Library /wp-admin/upload.php | 1,429 ▲44 | 4.23 ▼0.00 | 97.81 ▼5.33 | 45.76 ▲2.30 |
Notice on Dashboard /wp-admin/options-general.php?page=sna-a-dashboard | 797 | 2.05 | 23.12 | 27.45 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- urgnt_notice
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- nrml_notice
- can_compress_scripts
Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (Settings of Notice on dashboard plugin)
show-notice-or-message-on-admin-area/show_notice_on_admin_area.php 92% from 13 tests
Analyzing the main PHP file in "Show notice or message on admin area" version 2.0
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("show-notice-or-message-on-admin-area.php" instead of "show_notice_on_admin_area.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected114 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 24 | 76 |
CSS | 1 | 3 | 0 | 38 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 3.00 |
▷ Maximum method complexity | 3.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 | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 57.40KB | 26.42KB | ▼ 53.97% |