Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.87MB] [CPU: ▲1,113.96ms] 50% from 4 tests
Analyzing server-side resources used by WP Awesome Announcements
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,308.92ms on /wp-admin/options-general.php?page=wp-awesome-announcements-recommended-plugins)
- Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 1,113.96ms on /wp-admin/options-general.php?page=wp-awesome-announcements-recommended-plugins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.34 ▲0.88 | 709.13 ▲668.06 |
Dashboard /wp-admin | 4.28 ▲0.98 | 1,671.80 ▲1,618.62 |
Posts /wp-admin/edit.php | 4.21 ▲0.86 | 1,250.06 ▲1,204.36 |
Add New Post /wp-admin/post-new.php | 6.74 ▲0.86 | 1,361.64 ▲1,263.81 |
Media Library /wp-admin/upload.php | 4.12 ▲0.89 | 1,354.08 ▲1,319.60 |
Add New /wp-admin/post-new.php?post_type=announcements | 4.23 | 1,296.12 |
Announcements /wp-admin/edit.php?post_type=announcements | 4.16 | 1,401.99 |
Recommended /wp-admin/options-general.php?page=wp-awesome-announcements-recommended-plugins | 4.02 | 1,308.92 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 62 new files
Database: no new tables, 13 new options
New WordPress options |
---|
jltwann_notice_subscribe |
jltwann_sheet_promo_data_hash |
theysaidso_admin_options |
widget_theysaidso_widget |
jltwann_activation_time |
jltwann_sheet_promo_data |
wp_awesome_announcements_version |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP Awesome Announcements
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,080 ▲345 | 13.66 ▼0.64 | 8.28 ▲6.44 | 37.14 ▼11.47 |
Dashboard /wp-admin | 2,397 ▲209 | 5.13 ▲0.27 | 118.45 ▲13.58 | 45.13 ▲2.48 |
Posts /wp-admin/edit.php | 2,206 ▲120 | 2.07 ▲0.06 | 40.64 ▲3.20 | 29.69 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,640 ▲98 | 20.93 ▲2.75 | 598.02 ▼24.66 | 53.65 ▲0.00 |
Media Library /wp-admin/upload.php | 1,502 ▲114 | 4.32 ▼0.02 | 113.05 ▼8.10 | 47.81 ▼1.07 |
Add New /wp-admin/post-new.php?post_type=announcements | 2,334 | 7.80 | 176.19 | 63.95 |
Announcements /wp-admin/edit.php?post_type=announcements | 1,180 | 2.03 | 46.28 | 31.08 |
Recommended /wp-admin/options-general.php?page=wp-awesome-announcements-recommended-plugins | 1,283 | 1.87 | 31.17 | 28.22 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 13 options
- can_compress_scripts
- wp_awesome_announcements_version
- theysaidso_admin_options
- jltwann_activation_time
- widget_theysaidso_widget
- db_upgraded
- jltwann_notice_subscribe
- widget_recent-comments
- jltwann_notice_ask_for_rating
- jltwann_sheet_promo_data
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
The following issues need your attention
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'JLTWANN\\Libs\\RowLinks' not found in wp-content/plugins/wp-awesome-announcements/Inc/Classes/Row_Links.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-awesome-announcements/wp-awesome-announcements.php:21
- > PHP Fatal error
Uncaught Error: Class 'JLTWANN\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/wp-awesome-announcements/Inc/Classes/Notifications/Ask_For_Rating.php:12
- > PHP Fatal error
Uncaught Error: Class 'JLTWANN\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/wp-awesome-announcements/Inc/Classes/Notifications/What_We_Collect.php:13
- > PHP Fatal error
Uncaught Error: Class 'JLTWANN\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/wp-awesome-announcements/Inc/Classes/Notifications/Subscribe.php:13
- > PHP Fatal error
Uncaught Error: Class 'JLTWANN\\Libs\\Upgrader' not found in wp-content/plugins/wp-awesome-announcements/Inc/Classes/Upgrade_Plugin.php:12
- > PHP Fatal error
Uncaught Error: Class 'JLTWANN\\Libs\\Recommended' not found in wp-content/plugins/wp-awesome-announcements/Inc/Classes/Recommended_Plugins.php:12
- > PHP Fatal error
Uncaught Error: Class 'JLTWANN\\Inc\\Classes\otifications\\Model\\Popup' not found in wp-content/plugins/wp-awesome-announcements/Inc/Classes/Notifications/Upgrade_Notice.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=wp-awesome-announcements-recommended-plugins
- > Network (severe)
https://ps.w.org/ultimate-blocks-for-gutenberg/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: news announcements, wordpress announcements, wordpress, scroll announcements, wordpress plugin
wp-awesome-announcements/wp-awesome-announcements.php 85% from 13 tests
"WP Awesome Announcements" version 2.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Domain Path: Please prefix the domain path with a forward slash character ("/languages/")
- Domain Path: The domain path should use only dashes and lowercase characters ("languages/")
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
There were no executable files found in this plugin4,414 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 784 | 1,463 | 3,099 |
CSS | 4 | 143 | 70 | 883 |
JavaScript | 5 | 66 | 41 | 432 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 26 | |
▷ Abstract classes | 4 | 15.38% |
▷ Concrete classes | 22 | 84.62% |
▷ Final classes | 1 | 4.55% |
Methods | 194 | |
▷ Static methods | 32 | 16.49% |
▷ Public methods | 191 | 98.45% |
▷ Protected methods | 1 | 0.52% |
▷ Private methods | 2 | 1.03% |
Functions | 9 | |
▷ Named functions | 5 | 55.56% |
▷ Anonymous functions | 4 | 44.44% |
Constants | 16 | |
▷ Global constants | 15 | 93.75% |
▷ Class constants | 1 | 6.25% |
▷ Public constants | 1 | 100.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.60MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.44KB | 0.00KB | ▼ 100.00% |
(invalid) assets/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png | 0.15KB | 0.00KB | ▼ 100.00% |
(invalid) assets/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.13KB | 0.00KB | ▼ 100.00% |
(invalid) assets/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png | 0.15KB | 0.00KB | ▼ 100.00% |
(invalid) assets/css/ui-lightness/images/ui-icons_222222_256x240.png | 7.65KB | 0.00KB | ▼ 100.00% |