Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▲1.36ms] Passed 4 tests
Analyzing server-side resources used by Subscribe to Double-Opt-In Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 45.49 ▲3.75 |
Dashboard /wp-admin | 3.58 ▲0.28 | 47.73 ▲0.50 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 55.04 ▲7.30 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 85.85 ▼6.11 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 38.31 ▲7.57 |
Subscribe to DOI Comments /wp-admin/options-general.php?page=stc-options | 3.44 | 35.41 |
Subscriptions /wp-admin/tools.php?page=stc-management | 3.44 | 34.36 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
sg_subscribe_settings |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Subscribe to Double-Opt-In Comments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.54 ▼0.84 | 1.69 ▼0.23 | 44.21 ▲1.27 |
Dashboard /wp-admin | 2,214 ▲29 | 5.83 ▼0.05 | 98.03 ▼8.25 | 39.18 ▼3.96 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.03 ▼0.00 | 33.47 ▼9.39 | 33.78 ▼2.53 |
Add New Post /wp-admin/post-new.php | 1,546 ▲10 | 18.63 ▼4.44 | 626.67 ▲41.47 | 61.57 ▲7.45 |
Media Library /wp-admin/upload.php | 1,402 ▲11 | 4.17 ▼0.08 | 94.24 ▼5.27 | 41.53 ▼5.96 |
Subscribe to DOI Comments /wp-admin/options-general.php?page=stc-options | 951 | 2.03 | 21.94 | 29.11 |
Subscriptions /wp-admin/tools.php?page=stc-management | 711 | 1.53 | 6.95 | 17.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% 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/options-general.php?page=stc-options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method sg_subscribe_settings::options_page() should not be called statically
- > GET request to /wp-admin/options-general.php?page=stc-options
- > Deprecated in wp-content/plugins/subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php+311
Non-static method sg_subscribe_settings::options_page_contents() should not be called statically
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=stc-options
- > Deprecated in wp-content/plugins/subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php+264
Non-static method sg_subscribe_settings::form_setting() should not be called statically
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=stc-options
- > Deprecated in wp-content/plugins/subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php+280
Non-static method sg_subscribe_settings::checkflag() should not be called statically
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=stc-options
- > Deprecated in wp-content/plugins/subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php+268
Non-static method sg_subscribe_settings::textarea_setting() should not be called statically
- > GET request to /wp-admin/options-general.php?page=stc-options
- > Notice in wp-content/plugins/subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php+301
Undefined index: withoutCom_text
- > GET request to /wp-admin/tools.php?page=stc-management
- > Notice in wp-content/plugins/subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php+1230
Undefined index: userSubscribeWithoutComment
- > GET request to /wp-admin/tools.php?page=stc-management
- > Notice in wp-content/plugins/subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php+1234
Undefined index: verify
- > GET request to /wp-admin/tools.php?page=stc-management
- > Notice in wp-content/plugins/subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php+1235
Undefined index: pid
- > GET request to /wp-admin/tools.php?page=stc-management
- > Notice in wp-content/plugins/subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php+1236
Undefined index: cm
- > GET request to /wp-admin/tools.php?page=stc-management
- > Notice in wp-content/plugins/subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php+1237
Undefined index: withoutCommentToken
- > GET request to /wp-admin/tools.php?page=stc-management
- > Notice in wp-content/plugins/subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php+1238
Undefined index: comment_withoutCommentToken_b984edcdfe562d3f512e5f50c1f1a1ed
- > GET request to /wp-admin/tools.php?page=stc-management
- > User deprecated in wp-includes/functions.php+5453
Function wpdb::escape is deprecated since version 3.6.0! Use wpdb::prepare() or esc_sql() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=stc-management
- > Notice in wp-content/plugins/subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php+1404
Undefined index: email
- 3 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=stc-management
- > Notice in wp-content/plugins/subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php+1441
Undefined index: showallsubscribers
SRP 50% 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Part of the settings menu.), #2 (The checkbox to subscribe to a comment thread.)
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
subscribe-to-double-opt-in-comments/subscribe-to-double-opt-in-comments.php 85% from 13 tests
The entry point to "Subscribe to Double-Opt-In Comments" version 6.6.12 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 313 characters long)
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,338 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 285 | 77 | 1,338 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 70.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 9 | 52.94% |
▷ Anonymous functions | 8 | 47.06% |
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
PNG images were not found in this plugin