Benchmarks
Plugin footprint 65% 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: ▲3.82MB] [CPU: ▲23.86ms] Passed 4 tests
Server-side resources used by Notification - Custom Notifications and Alerts for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.28 ▲3.82 | 60.75 ▲19.40 |
Dashboard /wp-admin | 7.15 ▲3.85 | 76.77 ▲27.36 |
Posts /wp-admin/edit.php | 7.20 ▲3.85 | 70.99 ▲25.46 |
Add New Post /wp-admin/post-new.php | 9.69 ▲3.81 | 118.50 ▲23.21 |
Media Library /wp-admin/upload.php | 7.03 ▲3.80 | 69.02 ▲35.79 |
Settings /wp-admin/edit.php?post_type=notification&page=settings | 6.95 | 54.89 |
Wizard /wp-admin/admin.php?page=wizard | 7.03 | 69.24 |
Notifications /wp-admin/edit.php?post_type=notification | 6.95 | 57.93 |
Extensions /wp-admin/edit.php?post_type=notification&page=extensions | 6.95 | 56.07 |
Add New Notification /wp-admin/post-new.php?post_type=notification | 6.95 | 55.73 |
Server storage [IO: ▲3.69MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 1,244 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_notification_logs |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
notification_db_version |
notification_data_version |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Notification - Custom Notifications and Alerts for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 13.21 ▼1.16 | 1.82 ▲0.17 | 39.29 ▼13.52 |
Dashboard /wp-admin | 2,262 ▲70 | 5.87 ▲0.91 | 111.47 ▼1.27 | 41.69 ▲2.27 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.06 ▲0.06 | 40.30 ▲3.21 | 36.68 ▲5.77 |
Add New Post /wp-admin/post-new.php | 1,574 ▲53 | 18.24 ▼4.84 | 621.98 ▼43.28 | 61.47 ▲1.48 |
Media Library /wp-admin/upload.php | 1,445 ▲57 | 4.22 ▲0.03 | 94.94 ▼4.65 | 41.55 ▼5.64 |
Settings /wp-admin/edit.php?post_type=notification&page=settings | 1,833 | 5.33 | 84.36 | 41.01 |
Wizard /wp-admin/admin.php?page=wizard | 1,549 | 5.32 | 81.85 | 37.89 |
Notifications /wp-admin/edit.php?post_type=notification | 1,832 | 5.36 | 60.41 | 35.69 |
Extensions /wp-admin/edit.php?post_type=notification&page=extensions | 1,830 | 5.31 | 66.58 | 38.28 |
Add New Notification /wp-admin/post-new.php?post_type=notification | 1,829 | 5.31 | 61.16 | 41.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/notification/uninstall.php+17
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/notification/vendor/enshrined/svg-sanitize/src/svg-scanner.php
- > /wp-content/plugins/notification/src/Dependencies/enshrined/svgSanitize/svg-scanner.php
- 597× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: get in wp-content/plugins/notification/resources/templates/form/field.php on line 14
- > PHP Warning
array_values() expects parameter 1 to be array, null given in wp-content/plugins/notification/vendor/enshrined/svg-sanitize/src/svg-scanner.php on line 70
- > PHP Fatal error
Trait 'BracketSpace\otification\\Dependencies\\Micropackage\\DocHooks\\HookTrait' not found in wp-content/plugins/notification/src/Runtime.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/notification/src/Dependencies/HTMLPurifier/HTMLModule/SafeObject.php:9
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_URIFilter' not found in wp-content/plugins/notification/src/Dependencies/HTMLPurifier/URIFilter/DisableExternal.php:3
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_URIScheme' not found in wp-content/plugins/notification/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/file.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/notification/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/ID.php:12
- > PHP Fatal error
Uncaught Error: Class 'BracketSpace\otification\\Abstracts\\Recipient' not found in wp-content/plugins/notification/src/Defaults/Recipient/UserID.php:16
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/notification/src/Dependencies/HTMLPurifier/AttrDef/URI.php:7
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrTransform' not found in wp-content/plugins/notification/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/TargetNoreferrer.php:12
- > PHP Notice
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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: api, notify, webhook, notification, email...
notification/notification.php 92% from 13 tests
The entry point to "Notification - Custom Notifications and Alerts for WordPress" version 8.0.15 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin41,722 lines of code in 724 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 631 | 9,248 | 24,345 | 36,594 |
JavaScript | 41 | 239 | 87 | 2,271 |
Sass | 20 | 468 | 3 | 1,724 |
JSON | 14 | 0 | 0 | 771 |
Markdown | 9 | 92 | 0 | 145 |
Bourne Shell | 1 | 21 | 11 | 120 |
PO File | 1 | 9 | 11 | 46 |
XML | 2 | 0 | 0 | 34 |
CSS | 2 | 4 | 1 | 7 |
YAML | 1 | 0 | 0 | 6 |
SVG | 1 | 0 | 0 | 3 |
INI | 1 | 1 | 1 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 232)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 539.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 232.00 |
Code structure | ||
---|---|---|
Namespaces | 83 | |
Interfaces | 18 | |
Traits | 11 | |
Classes | 770 | |
▷ Abstract classes | 50 | 6.49% |
▷ Concrete classes | 720 | 93.51% |
▷ Final classes | 0 | 0.00% |
Methods | 2,707 | |
▷ Static methods | 219 | 8.09% |
▷ Public methods | 2,305 | 85.15% |
▷ Protected methods | 221 | 8.16% |
▷ Private methods | 181 | 6.69% |
Functions | 220 | |
▷ Named functions | 68 | 30.91% |
▷ Anonymous functions | 152 | 69.09% |
Constants | 135 | |
▷ Global constants | 11 | 8.15% |
▷ Class constants | 124 | 91.85% |
▷ Public constants | 124 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected