Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼1.28MB] [CPU: ▼49.24ms] Passed 4 tests
Server-side resources used by Event Notifier
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.69 ▼0.77 | 10.08 ▼30.51 |
Dashboard /wp-admin | 2.74 ▼0.60 | 14.98 ▼53.04 |
Posts /wp-admin/edit.php | 2.75 ▼0.61 | 15.93 ▼33.73 |
Add New Post /wp-admin/post-new.php | 2.75 ▼3.14 | 21.68 ▼79.68 |
Media Library /wp-admin/upload.php | 2.75 ▼0.48 | 17.14 ▼17.85 |
Event Notifier /wp-admin/tools.php?page=event-notifier | 2.75 | 14.37 |
Server storage [IO: ▲1.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 95 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Event Notifier
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.31 ▼0.04 | 1.78 ▲0.14 | 36.99 ▼6.60 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▲0.02 | 82.95 ▼7.75 | 41.33 ▼0.52 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.95 ▼0.06 | 40.39 ▲0.66 | 34.88 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 22.89 ▼0.26 | 701.21 ▲46.99 | 51.29 ▲2.50 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.11 ▼0.04 | 108.02 ▲5.81 | 46.47 ▼0.02 |
Event Notifier /wp-admin/tools.php?page=event-notifier | 895 | 2.26 | 35.65 | 39.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/event-notifier/classes/evenote/ui.php+123
Creating default object from empty value
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=event-notifier
- > Warning in wp-content/plugins/event-notifier/classes/evenote/ui.php+123
Creating default object from empty value
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/event-notifier/assets/svg/loading.php
- 32× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/event-notifier/includes/slack-config.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/event-notifier/includes/email-config.php:13
- > PHP Fatal error
Uncaught Error: Class 'evenote\\data\\data' not found in wp-content/plugins/event-notifier/classes/evenote/ui/control.php:19
- > PHP Fatal error
Uncaught Error: Class 'evenote\\ui\\section' not found in wp-content/plugins/event-notifier/classes/evenote/ui/grid.php:20
- > PHP Fatal error
Uncaught Error: Class 'evenote\\ui\\panel' not found in wp-content/plugins/event-notifier/classes/evenote/ui/modal.php:21
- > PHP Notice
Undefined index: base_color in wp-content/plugins/event-notifier/assets/svg/loading.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'evenote\\ui\\control\\template' not found in wp-content/plugins/event-notifier/classes/evenote/ui/control/button.php:19
- > PHP Fatal error
Uncaught Error: Class 'evenote\\ui\\control' not found in wp-content/plugins/event-notifier/classes/evenote/ui/control/template.php:19
- > PHP Fatal error
Uncaught Error: Class 'evenote\\ui\\panel' not found in wp-content/plugins/event-notifier/classes/evenote/ui/box.php:22
- > PHP Fatal error
Uncaught Error: Class 'evenote\\ui\\control' not found in wp-content/plugins/event-notifier/classes/evenote/ui/control/text.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% 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
6 plugin tags: notification, event, slack notifications, event notifications, slack...
event-notifier/event-notifier.php 92% from 13 tests
The main PHP script in "Event Notifier" version 1.2.2 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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
No dangerous file extensions were detected11,771 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 22 | 1,089 | 590 | 4,781 |
CSS | 24 | 76 | 4 | 4,083 |
PHP | 41 | 797 | 2,368 | 2,292 |
SVG | 1 | 0 | 0 | 615 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 2 | 7.14% |
▷ Concrete classes | 26 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 193 | |
▷ Static methods | 5 | 2.59% |
▷ Public methods | 164 | 84.97% |
▷ Protected methods | 15 | 7.77% |
▷ Private methods | 14 | 7.25% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/about.png | 16.68KB | 7.29KB | ▼ 56.26% |