Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.24ms] Passed 4 tests
Analyzing server-side resources used by constant contact form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 44.58 ▲1.13 |
Dashboard /wp-admin | 3.40 ▲0.10 | 50.32 ▼3.34 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.20 ▼2.60 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 92.68 ▼20.13 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.94 ▲1.17 |
Constant contact form /wp-admin/options-general.php?page=constant-contact-form | 3.29 | 33.60 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 22 new options
New WordPress options |
---|
db_upgraded |
ccf_adminmail_subject |
ccf_button |
ccf_usermail |
ccf_usermail_content |
theysaidso_admin_options |
ccf_adminmail_content |
ccf_group |
ccf_username |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for constant contact form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.69 ▲0.20 | 1.91 ▲0.18 | 45.41 ▲4.94 |
Dashboard /wp-admin | 2,202 ▲22 | 5.61 ▼0.04 | 93.75 ▲3.75 | 42.54 ▼3.62 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.07 | 34.84 ▼3.83 | 34.21 ▼1.04 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 23.54 ▲5.54 | 656.47 ▲24.18 | 65.97 ▲4.88 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.23 ▲0.02 | 103.62 ▼4.74 | 44.51 ▼3.36 |
Constant contact form /wp-admin/options-general.php?page=constant-contact-form | 1,045 | 1.99 | 28.01 | 28.33 |
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 22 options in the database
- ccf_usermail_content
- ccf_button
- ccf_homeurl
- ccf_username
- ccf_password
- ccf_adminmail
- can_compress_scripts
- widget_theysaidso_widget
- ccf_fromemail
- ccf_usermail_subject
- ...
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/constant-contact-form/constant-contact-form.php:279
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: widget, contact, constant contact, constant
constant-contact-form/constant-contact-form.php Passed 13 tests
The main PHP script in "constant contact form" version 7.4 is automatically included on every request by WordPress
121 characters long description:
This constant contact form plugin automatically add your subscribers email address into your constantcontact.com account.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin810 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 73 | 16 | 436 |
PO File | 2 | 92 | 100 | 234 |
JavaScript | 1 | 2 | 2 | 109 |
CSS | 1 | 0 | 0 | 31 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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 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
There were not PNG files found in your plugin