Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.86ms] Passed 4 tests
This is a short check of server-side resources used by Double Opt-in for CF7
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.60 ▼5.80 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.84 ▼14.11 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.58 ▲1.96 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.27 ▼13.42 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.04 ▲1.88 |
All Opt-In Forms /wp-admin/edit.php?post_type=cf7optin_settings | 3.04 | 25.43 |
Double Opt-in Settings /wp-admin/admin.php?page=wpcf7-optin | 3.00 | 24.59 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Double Opt-in for CF7: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.40 ▲0.03 | 1.85 ▼0.01 | 41.07 ▼2.67 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼0.98 | 110.64 ▼4.72 | 40.67 ▼5.88 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 1.98 ▼0.08 | 39.05 ▲1.93 | 33.57 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 18.26 ▼4.96 | 616.66 ▼69.15 | 50.92 ▼1.72 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.19 ▼0.02 | 96.28 ▼16.87 | 41.96 ▼6.57 |
All Opt-In Forms /wp-admin/edit.php?post_type=cf7optin_settings | 28 | 0.44 | 0.08 | 3.67 |
Double Opt-in Settings /wp-admin/admin.php?page=wpcf7-optin | 28 | 0.44 | 0.07 | 4.04 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/double-opt-in-for-cf7/cf7-optin.php
- > /wp-content/plugins/double-opt-in-for-cf7/inc/optin-submission-class.php
- > /wp-content/plugins/double-opt-in-for-cf7/inc/optin-settings-class.php
- > /wp-content/plugins/double-opt-in-for-cf7/admin/cf7optin-admin.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=cf7optin_settings
- > Network (severe)
wp-admin/edit.php?post_type=cf7optin_settings - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=wpcf7-optin
- > Network (severe)
wp-admin/admin.php?page=wpcf7-optin - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #2, #3 in double-opt-in-for-cf7/assets to your readme.txt
double-opt-in-for-cf7/cf7-optin.php 85% from 13 tests
The principal PHP file in "Double Opt-in for CF7" v. 1.0.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 ("double-opt-in-for-cf7.php" instead of "cf7-optin.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin2,746 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 161 | 209 | 1,554 |
PO File | 1 | 172 | 211 | 628 |
JavaScript | 3 | 44 | 53 | 422 |
CSS | 2 | 11 | 11 | 142 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
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 | 4.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 64.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 35.56% |
Functions | 65 | |
▷ Named functions | 62 | 95.38% |
▷ Anonymous functions | 3 | 4.62% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin