Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼5.35ms] Passed 4 tests
Server-side resources used by Super Simple Site Alert
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 43.59 ▼2.66 |
Dashboard /wp-admin | 3.41 ▲0.07 | 50.60 ▼12.05 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.37 ▲2.83 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 91.25 ▼9.51 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.52 ▲4.06 |
Site Alert /wp-admin/admin.php?page=site-alert | 3.37 | 34.61 |
Add/Edit /wp-admin/admin.php?page=site-alert-manage | 3.42 | 36.94 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Super Simple Site Alert
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲195 | 14.38 ▼0.24 | 7.54 ▲5.53 | 45.96 ▲3.39 |
Dashboard /wp-admin | 2,261 ▲81 | 5.23 ▼0.44 | 105.67 ▲9.81 | 48.03 ▲8.67 |
Posts /wp-admin/edit.php | 2,175 ▲72 | 2.62 ▲0.59 | 45.33 ▲7.59 | 37.79 ▲1.67 |
Add New Post /wp-admin/post-new.php | 1,585 ▲59 | 23.18 ▲0.35 | 667.57 ▲72.31 | 36.19 ▼18.44 |
Media Library /wp-admin/upload.php | 1,469 ▲66 | 4.77 ▲0.56 | 107.69 ▲9.52 | 40.44 ▼3.36 |
Site Alert /wp-admin/admin.php?page=site-alert | 731 | 1.52 | 10.65 | 16.78 |
Add/Edit /wp-admin/admin.php?page=site-alert-manage | 953 | 1.70 | 10.14 | 27.45 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- recovery_mode_email_last_sent
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=site-alert
- > Error in wp-content/plugins/super-simple-site-alert/admin/partials/site-alert-admin-display.php+13
Uncaught Error: Call to undefined function get_sites() in wp-content/plugins/super-simple-site-alert/admin/partials/site-alert-admin-display.php:13
Stack trace:
#0 wp-content/plugins/super-simple-site-alert/admin/class-site-alert-admin.php(49): require_once()
#1 wp-includes/class-wp-hook.php(310): Site_Alert_Admin->site_alert_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- > GET request to /wp-admin/admin.php?page=site-alert-manage
- > Notice in wp-content/plugins/super-simple-site-alert/admin/partials/site-alert-admin-manage.php+208
Undefined variable: priority_color_border
- > GET request to /wp-admin/admin.php?page=site-alert-manage
- > Notice in wp-content/plugins/super-simple-site-alert/admin/partials/site-alert-admin-manage.php+209
Undefined variable: priority_color_bg
- > GET request to /wp-admin/admin.php?page=site-alert-manage
- > Notice in wp-content/plugins/super-simple-site-alert/admin/partials/site-alert-admin-manage.php+210
Undefined variable: priority_color_text
- > GET request to /wp-admin/admin.php?page=site-alert-manage
- > Error in wp-content/plugins/super-simple-site-alert/admin/partials/site-alert-admin-manage.php+244
Uncaught Error: Call to undefined function get_sites() in wp-content/plugins/super-simple-site-alert/admin/partials/site-alert-admin-manage.php:244
Stack trace:
#0 wp-content/plugins/super-simple-site-alert/admin/class-site-alert-admin.php(56): require_once()
#1 wp-includes/class-wp-hook.php(310): Site_Alert_Admin->site_alert_manage()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
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
Please fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/super-simple-site-alert/admin/partials/site-alert-admin-groups.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_blog_id() in wp-content/plugins/super-simple-site-alert/admin/partials/site-alert-admin-display.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_blog_id() in wp-content/plugins/super-simple-site-alert/public/partials/site-alert-public-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/super-simple-site-alert/admin/partials/site-alert-admin-manage.php:174
- > 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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: network, multisite, alert
super-simple-site-alert/site-alert.php 92% from 13 tests
The principal PHP file in "Super Simple Site Alert" v. 1.3.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("super-simple-site-alert.php" instead of "site-alert.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected5,049 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 30 | 411 | 202 | 2,603 |
PHP | 14 | 170 | 307 | 1,470 |
CSS | 18 | 127 | 77 | 976 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 30 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 11.76% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/DataTables-1.10.24/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
admin/js/DataTables-1.10.24/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
admin/js/DataTables-1.10.24/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
admin/js/DataTables-1.10.24/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
admin/js/DataTables-1.10.24/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |