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
Install script ran successfully
Server metrics [RAM: ▲2.75MB] [CPU: ▲21.88ms] Passed 4 tests
This is a short check of server-side resources used by Constant Contact Forms
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.86 ▲2.40 | 59.55 ▲18.53 |
Dashboard /wp-admin | 6.18 ▲2.88 | 67.69 ▲15.74 |
Posts /wp-admin/edit.php | 6.21 ▲2.85 | 80.08 ▲29.32 |
Add New Post /wp-admin/post-new.php | 9.05 ▲3.16 | 123.16 ▲23.91 |
Media Library /wp-admin/upload.php | 6.10 ▲2.87 | 66.81 ▲29.42 |
Add Form /wp-admin/post-new.php?post_type=ctct_forms | 7.00 | 75.47 |
Settings /wp-admin/edit.php?post_type=ctct_forms&page=ctct_options_settings_general | 6.38 | 58.49 |
Connect Now /wp-admin/edit.php?post_type=ctct_forms&page=ctct_options_connect | 6.01 | 57.83 |
Forms /wp-admin/edit.php?post_type=ctct_forms | 6.16 | 57.93 |
About /wp-admin/edit.php?post_type=ctct_forms&page=ctct_options_about | 6.02 | 57.45 |
Server storage [IO: ▲5.89MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 767 new files
Database: no new tables, 13 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_ctct_form |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
CtctConstantContactState |
ctct_key |
ctct_plugin_activated_date |
CtctConstantContactcode_verifier |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Constant Contact Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲168 | 14.27 ▼0.01 | 13.04 ▲11.31 | 40.17 ▼3.79 |
Dashboard /wp-admin | 2,302 ▲125 | 5.09 ▼0.57 | 99.35 ▲0.46 | 88.18 ▲51.48 |
Posts /wp-admin/edit.php | 2,238 ▲138 | 2.48 ▲0.47 | 44.77 ▲9.59 | 38.57 ▲7.55 |
Add New Post /wp-admin/post-new.php | 1,762 ▲236 | 21.54 ▼1.52 | 790.93 ▲115.66 | 39.63 ▼15.73 |
Media Library /wp-admin/upload.php | 1,519 ▲119 | 4.71 ▲0.52 | 101.22 ▼11.90 | 89.34 ▲41.85 |
Add Form /wp-admin/post-new.php?post_type=ctct_forms | 3,592 | 7.29 | 202.42 | 147.70 |
Settings /wp-admin/edit.php?post_type=ctct_forms&page=ctct_options_settings_general | 1,092 | 2.40 | 35.71 | 34.21 |
Connect Now /wp-admin/edit.php?post_type=ctct_forms&page=ctct_options_connect | 968 | 2.35 | 32.33 | 42.84 |
Forms /wp-admin/edit.php?post_type=ctct_forms | 1,229 | 2.61 | 40.35 | 34.30 |
About /wp-admin/edit.php?post_type=ctct_forms&page=ctct_options_about | 1,440 | 9.17 | 322.06 | 70.07 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/constant-contact-forms/vendor/google/recaptcha/examples/index.php
- 216× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/constant-contact-forms/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php:28
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/constant-contact-forms/includes/Ctct/Components/Tracking/TrackingSummary.php:13
- > PHP Warning
require_once(wp-content/plugins/constant-contact-forms/vendor/google/recaptcha/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/constant-contact-forms/vendor/google/recaptcha/examples/recaptcha-v3-verify.php on line 38
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/constant-contact-forms/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php:33
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/constant-contact-forms/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/constant-contact-forms/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php:31
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/constant-contact-forms/vendor/monolog/monolog/src/Monolog/Handler/SymfonyMailerHandler.php:29
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/constant-contact-forms/vendor/google/recaptcha/tests/ReCaptcha/ReCaptchaTest.php:39
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/constant-contact-forms/vendor/monolog/monolog/src/Monolog/Processor/HostnameProcessor.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/constant-contact-forms/vendor/cmb2/cmb2/includes/CMB2_Field.php:17
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: newsletter, contacts, constant contact form, constant contact, constant contact official...
constant-contact-forms/constant-contact-forms.php Passed 13 tests
"Constant Contact Forms" version 2.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Be a better marketer. All it takes is Constant Contact email marketing.
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
Success! There were no dangerous files found in this plugin84,047 lines of code in 578 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 326 | 7,875 | 22,097 | 30,181 |
JSON | 9 | 0 | 0 | 7,246 |
CSS | 18 | 369 | 1,193 | 5,689 |
Markdown | 24 | 1,066 | 0 | 3,051 |
Sass | 35 | 672 | 107 | 2,943 |
JavaScript | 35 | 624 | 1,182 | 2,492 |
XML | 3 | 0 | 0 | 52 |
YAML | 2 | 10 | 0 | 31 |
make | 1 | 9 | 4 | 24 |
SVG | 3 | 0 | 2 | 11 |
Bourne Shell | 1 | 2 | 0 | 3 |
HTML | 1 | 0 | 0 | 1 |
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 | 13.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 243.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 30 | |
Interfaces | 12 | |
Traits | 5 | |
Classes | 296 | |
▷ Abstract classes | 19 | 6.42% |
▷ Concrete classes | 277 | 93.58% |
▷ Final classes | 10 | 3.61% |
Methods | 2,015 | |
▷ Static methods | 247 | 12.26% |
▷ Public methods | 1,612 | 80.00% |
▷ Protected methods | 276 | 13.70% |
▷ Private methods | 127 | 6.30% |
Functions | 127 | |
▷ Named functions | 97 | 76.38% |
▷ Anonymous functions | 30 | 23.62% |
Constants | 116 | |
▷ Global constants | 3 | 2.59% |
▷ Class constants | 113 | 97.41% |
▷ Public constants | 86 | 76.11% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
31 PNG files occupy 0.67MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
assets/images/cc-login.png | 12.26KB | 5.94KB | ▼ 51.56% |
vendor/cmb2/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
vendor/cmb2/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
assets/images/form-display.png | 134.43KB | 49.67KB | ▼ 63.05% |