Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼7.10ms] Passed 4 tests
Analyzing server-side resources used by Contact Form 7 Newsletter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 37.08 ▼0.43 |
Dashboard /wp-admin | 3.41 ▲0.07 | 42.97 ▼20.96 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.55 ▲1.72 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 87.25 ▼8.73 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 36.22 ▲2.39 |
Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
ctct_cf7_version |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
ctct_cf7_updated |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Form 7 Newsletter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.35 ▼0.91 | 3.91 ▲2.28 | 39.35 ▼0.26 |
Dashboard /wp-admin | 2,221 ▲35 | 5.11 ▲0.14 | 99.26 ▼8.24 | 41.11 ▼2.20 |
Posts /wp-admin/edit.php | 2,103 ▲17 | 2.17 ▲0.13 | 40.91 ▲6.70 | 36.26 ▼0.65 |
Add New Post /wp-admin/post-new.php | 1,552 ▲22 | 18.37 ▼4.90 | 647.42 ▼23.12 | 67.84 ▲10.94 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.21 ▼0.02 | 109.58 ▲3.96 | 47.63 ▲0.17 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- ctct_cf7_version
- ctct_cf7_updated
- theysaidso_admin_options
- 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'CTCTUtility' not found in wp-content/plugins/contact-form-7-newsletter/api/ctct_cf7_superclass.php:3
- > PHP Fatal error
Uncaught Error: Class 'CTCTCF7' not found in wp-content/plugins/contact-form-7-newsletter/shortcode.php:3
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/contact-form-7-newsletter/tag-generator.php:4
- > PHP Fatal error
Uncaught Error: Class 'CTCT_SuperClass' not found in wp-content/plugins/contact-form-7-newsletter/metabox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/contact-form-7-newsletter/cf7-constantcontact.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/contact-form-7-newsletter/shortcode-js.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Configure your Constant Contact settings), #2 (Insert a tag that specifies how you would like users to sign up), #3 (Map the Contact Form 7 form fields to the Constant Contact fields), #4 (When a form is connected to Constant Contact, you will see this icon)
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
contact-form-7-newsletter/cf7-constantcontact.php 92% from 13 tests
"Contact Form 7 Newsletter" version 2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("contact-form-7-newsletter.php" instead of "cf7-constantcontact.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin4,880 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 796 | 902 | 3,951 |
JavaScript | 2 | 183 | 112 | 635 |
CSS | 2 | 47 | 4 | 293 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 14.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 561 | |
▷ Static methods | 21 | 3.74% |
▷ Public methods | 544 | 96.97% |
▷ Protected methods | 1 | 0.18% |
▷ Private methods | 16 | 2.85% |
Functions | 5 | |
▷ Named functions | 5 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
45 PNG files occupy 1.05MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
help/images/prettyPhoto/dark_rounded/contentPattern.png | 0.13KB | 0.09KB | ▼ 25.38% |
help/images/How_to_Configure_the_Contact_Form_7_Newsletter_Plugin/media_1379972945525.png | 22.31KB | 7.82KB | ▼ 64.94% |
CTCT_horizontal_logo.png | 5.89KB | 3.50KB | ▼ 40.48% |
help/images/prettyPhoto/light_square/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
help/images/prettyPhoto/facebook/contentPatternRight.png | 0.13KB | 0.10KB | ▼ 24.26% |