Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.41ms] Passed 4 tests
This is a short check of server-side resources used by Optin Comment Notifications
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.60 ▲0.06 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.18 ▼4.81 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 50.51 ▲3.46 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 89.24 ▼0.35 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.99 ▲6.52 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Optin Comment Notifications
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.32 ▼1.04 | 4.30 ▲2.42 | 41.74 ▼4.59 |
Dashboard /wp-admin | 2,206 ▲18 | 4.81 ▼1.06 | 108.01 ▼4.39 | 38.38 ▼5.59 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.02 | 39.76 ▲1.46 | 34.87 ▲2.72 |
Add New Post /wp-admin/post-new.php | 1,534 ▲17 | 23.51 ▲5.95 | 668.28 ▲34.69 | 59.57 ▲12.56 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.20 ▲0.03 | 100.30 ▲3.80 | 42.61 ▲0.04 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/optin-comment-notifications/tests/bootstrap.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/optin-comment-notifications/tests/bootstrap.php on line 17
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/optin-comment-notifications/tests/bootstrap.php on line 17
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: email, commenting, comment, coffee2code, notifications...
optin-comment-notifications/optin-comment-notifications.php Passed 13 tests
The principal PHP file in "Optin Comment Notifications" v. 1.4 is loaded by WordPress automatically on each request
89 characters long description:
Allows users to opt into receiving a notification whenever a comment is made to the site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin456 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 140 | 243 | 338 |
Markdown | 2 | 24 | 0 | 82 |
Bourne Shell | 1 | 7 | 3 | 22 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 8 | 21.62% |
▷ Public methods | 35 | 94.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.41% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin