Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.36MB] [CPU: ▲1.89ms] Passed 4 tests
Analyzing server-side resources used by Connect Contact Form 7 to Constant Contact
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.41 | 48.32 ▲10.30 |
Dashboard /wp-admin | 3.71 ▲0.40 | 71.56 ▲23.29 |
Posts /wp-admin/edit.php | 3.74 ▲0.39 | 48.05 ▲0.08 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 84.14 ▼10.66 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 39.66 ▲7.83 |
CTCT Extra Settings /wp-admin/options-general.php?page=dd-ctct-extra | 3.52 | 32.80 |
Constant Contact /wp-admin/admin.php?page=dd_ctct | 3.52 | 32.75 |
Server storage [IO: ▲0.25MB] [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: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Connect Contact Form 7 to Constant Contact
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 13.47 ▼0.92 | 1.82 ▲0.15 | 42.86 ▲2.41 |
Dashboard /wp-admin | 2,227 ▲39 | 5.04 ▲0.10 | 110.02 ▲5.23 | 39.60 ▼5.97 |
Posts /wp-admin/edit.php | 2,109 ▲17 | 2.44 ▲0.42 | 35.48 ▼5.25 | 33.02 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,537 ▲8 | 23.56 ▲5.27 | 663.81 ▲47.54 | 54.79 ▼2.60 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.43 ▲0.25 | 97.80 ▲4.87 | 40.24 ▼1.52 |
CTCT Extra Settings /wp-admin/options-general.php?page=dd-ctct-extra | 824 | 1.80 | 27.66 | 25.79 |
Constant Contact /wp-admin/admin.php?page=dd_ctct | 849 | 1.99 | 25.36 | 25.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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'YeEasyAdminNotices\\V1\oticeTestCase' not found in wp-content/plugins/connect-contact-form-7-to-constant-contact-v3/admin/admin-notices/tests/test-notices.php:5
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/connect-contact-form-7-to-constant-contact-v3/admin/admin-notices/tests/bootstrap.php on line 14
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/connect-contact-form-7-to-constant-contact-v3/admin/admin-notices/tests/bootstrap.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/connect-contact-form-7-to-constant-contact-v3/admin/admin-notices/tests/NoticeTestCase.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function YeEasyAdminNotices\\V1\\add_action() in wp-content/plugins/connect-contact-form-7-to-constant-contact-v3/admin/admin-notices/AdminNotice.php:604
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Choose the list or lists you want to assign contacts to.), #2 (This checkbox tells the plugin if you're using the shortcode from the form or whether you're using an automatic opt-in without a checkbox.), #3 (Potential Front end usage.)
- Screenshots: Please add descriptions for these screenshots #0, #0, #0 in connect-contact-form-7-to-constant-contact-v3/assets to your readme.txt
connect-contact-form-7-to-constant-contact-v3/dd-cf7-constant-contact-v3.php 77% from 13 tests
The primary PHP file in "Connect Contact Form 7 to Constant Contact" version 1.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("connect-contact-form-7-to-constant-contact-v3.php" instead of "dd-cf7-constant-contact-v3.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)
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
Good job! No executable or dangerous file extensions detected2,584 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 492 | 850 | 2,062 |
Markdown | 2 | 101 | 0 | 227 |
Bourne Shell | 1 | 21 | 8 | 99 |
CSS | 2 | 7 | 0 | 89 |
JavaScript | 4 | 1 | 3 | 52 |
YAML | 1 | 7 | 0 | 23 |
JSON | 1 | 0 | 0 | 18 |
XML | 1 | 0 | 0 | 14 |
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.28 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 145 | |
▷ Static methods | 12 | 8.28% |
▷ Public methods | 119 | 82.07% |
▷ Protected methods | 14 | 9.66% |
▷ Private methods | 12 | 8.28% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 12 | |
▷ Global constants | 1 | 8.33% |
▷ Class constants | 11 | 91.67% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/CTCT_horizontal_logo.png | 5.89KB | 3.50KB | ▼ 40.48% |
admin/img/ctct-favicon.png | 3.01KB | 1.73KB | ▼ 42.60% |