Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.56MB] [CPU: ▼15.36ms] Passed 4 tests
Server-side resources used by WP Simple Notify
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 45.85 ▲4.06 |
Dashboard /wp-admin | 3.42 ▲0.11 | 52.86 ▲3.28 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 44.15 ▼2.56 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.59 | 36.77 ▼62.71 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.10 ▲0.56 |
WP Simple Notify /wp-admin/options-general.php?page=wp-simple-notify-admin | 3.31 | 31.19 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
WP Simple Notify: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.28 ▼1.40 | 4.88 ▲3.04 | 42.01 ▼8.03 |
Dashboard /wp-admin | 2,213 ▲22 | 4.87 ▼0.01 | 111.19 ▲5.42 | 38.76 ▼9.01 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.99 ▼0.02 | 37.97 ▼0.44 | 33.93 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.29 ▲4.97 | 677.08 ▼0.17 | 50.64 ▼13.35 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.13 ▲0.01 | 100.48 ▼16.10 | 40.49 ▼7.11 |
WP Simple Notify /wp-admin/options-general.php?page=wp-simple-notify-admin | 1,241 | 2.68 | 49.42 | 93.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=wp-simple-notify-admin
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
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× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-simple-notify/src/templates/main-settings.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(ABSPATHWPINC/class-phpmailer.php): failed to open stream: No such file or directory in wp-content/plugins/wp-simple-notify/src/Email.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-phpmailer.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-simple-notify/src/Email.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-simple-notify/src/templates/main-settings.php:133
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-simple-notify/wp-simple-notify.php:10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-simple-notify/src/Email.php on line 6
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-simple-notify/src/Email.php on line 6
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=wp-simple-notify-admin
- > Javascript (severe) in unknown
/wp-content/plugins/wp-simple-notify//src/assets/font-awesome-4.7.0.min.css?ver=6.3.1 3:3 Uncaught SyntaxError: Invalid or unexpected token
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: comments, notifications, email
wp-simple-notify/wp-simple-notify.php Passed 13 tests
The main file in "WP Simple Notify" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
69 characters long description:
Very simple but efficient plugin to handle common email notifications
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
Success! There were no dangerous files found in this plugin10,241 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,154 | 1,498 | 9,441 |
PHP | 13 | 178 | 302 | 768 |
Markdown | 1 | 13 | 0 | 16 |
JSON | 2 | 0 | 0 | 14 |
CSS | 2 | 0 | 9 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 5 | 9.80% |
▷ Public methods | 47 | 92.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 7.84% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 11 | |
▷ Global constants | 2 | 18.18% |
▷ Class constants | 9 | 81.82% |
▷ Public constants | 9 | 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