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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼7.42ms] Passed 4 tests
A check of server-side resources used by Courier Notices
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 45.49 ▼0.64 |
Dashboard /wp-admin | 3.48 ▲0.13 | 57.26 ▼8.75 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 53.74 ▼9.02 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 95.45 ▼11.26 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 47.49 ▲4.64 |
Add New /wp-admin/post-new.php?post_type=courier_notice | 3.55 | 69.49 |
All Notices /wp-admin/edit.php?post_type=courier_notice | 3.50 | 54.01 |
Settings /wp-admin/edit.php?post_type=courier_notice&page=courier | 3.44 | 39.16 |
Server storage [IO: ▲5.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 137 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
courier_notices_options |
courier_notices_design |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Courier Notices
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲171 | 13.61 ▼0.76 | 15.63 ▲13.67 | 37.27 ▼8.10 |
Dashboard /wp-admin | 2,229 ▲52 | 5.60 ▼0.01 | 86.50 ▼11.83 | 39.76 ▼8.71 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.01 ▲0.02 | 33.79 ▼1.44 | 39.33 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 17.45 ▼0.02 | 647.47 ▼82.14 | 50.94 ▼1.59 |
Media Library /wp-admin/upload.php | 1,434 ▲31 | 4.12 ▼0.11 | 103.31 ▼2.11 | 48.22 ▲4.04 |
Add New /wp-admin/post-new.php?post_type=courier_notice | 2,452 | 7.89 | 178.59 | 73.22 |
All Notices /wp-admin/edit.php?post_type=courier_notice | 1,490 | 2.34 | 39.08 | 39.17 |
Settings /wp-admin/edit.php?post_type=courier_notice&page=courier | 1,217 | 2.42 | 31.63 | 47.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- courier_notices_options
- widget_recent-posts
- widget_recent-comments
- courier_notices_design
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
- 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: notice_class in wp-content/plugins/courier-notices/templates/notice-popup-modal.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/courier-notices/templates/admin/upgrade-notice.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_term_meta() in wp-content/plugins/courier-notices/templates/admin/notice-preview.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/courier-notices/uninstall.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/courier-notices/templates/admin/notifications.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/courier-notices/templates/admin/js/courier-notice-type-row.php:15
- > PHP Notice
Undefined variable: type in wp-content/plugins/courier-notices/templates/admin/notifications.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/courier-notices/src/Controller/Courier_REST_Controller.php:17
- > PHP Notice
Undefined variable: notice_class in wp-content/plugins/courier-notices/templates/notice-informational.php on line 2
- > PHP Notice
Undefined variable: notice_class in wp-content/plugins/courier-notices/templates/notice.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: notifications, dismissible, alerts, gdpr, front end...
courier-notices/courier-notices.php Passed 13 tests
The principal PHP file in "Courier Notices" v. 1.5.8 is loaded by WordPress automatically on each request
94 characters long description:
A way to display, manage, and control front end user notifications for your WordPress install.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected11,743 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 77 | 2,455 | 3,567 | 7,613 |
CSS | 3 | 211 | 133 | 3,250 |
SVG | 8 | 84 | 6 | 459 |
Markdown | 4 | 164 | 0 | 360 |
JSON | 1 | 0 | 0 | 59 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 20.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 1 | 2.50% |
▷ Concrete classes | 39 | 97.50% |
▷ Final classes | 0 | 0.00% |
Methods | 327 | |
▷ Static methods | 42 | 12.84% |
▷ Public methods | 242 | 74.01% |
▷ Protected methods | 70 | 21.41% |
▷ Private methods | 15 | 4.59% |
Functions | 36 | |
▷ Named functions | 33 | 91.67% |
▷ Anonymous functions | 3 | 8.33% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
19 PNG files occupy 3.57MB with 2.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/courier-logo-fullcolor.png | 10.39KB | 5.29KB | ▼ 49.07% |
img/courier-logo-fullcolor@2x.png | 22.45KB | 11.38KB | ▼ 49.30% |
img/courier-logo-mark.png | 7.63KB | 3.38KB | ▼ 55.67% |
img/courier-settings-banner.png | 247.88KB | 31.84KB | ▼ 87.15% |
img/courier-promo-background-728x90.png | 36.92KB | 11.17KB | ▼ 69.73% |