Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼9.28ms] Passed 4 tests
A check of server-side resources used by constant contact
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 38.69 ▼1.18 |
Dashboard /wp-admin | 3.40 ▲0.05 | 47.58 ▼19.12 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 52.61 ▲1.83 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 87.86 ▼18.66 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 35.65 ▲2.24 |
Constant contact /wp-admin/options-general.php?page=constant-contact | 3.29 | 32.21 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 22 new options
New WordPress options |
---|
gcc_button |
gcc_password |
widget_recent-posts |
gcc_title |
db_upgraded |
gcc_group |
gcc_usermail_subject |
gcc_adminmail_content |
gcc_fromemail |
gcc_caption |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for constant contact
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 13.33 ▼0.89 | 1.89 ▲0.28 | 42.61 ▲2.98 |
Dashboard /wp-admin | 2,210 ▲18 | 5.84 ▲0.88 | 103.10 ▼3.52 | 39.60 ▲0.27 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 2.03 ▼0.09 | 41.09 ▲5.50 | 34.67 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 18.15 ▼5.00 | 641.69 ▼38.23 | 49.49 ▼3.28 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.03 | 95.33 ▼18.68 | 40.43 ▼7.67 |
Constant contact /wp-admin/options-general.php?page=constant-contact | 1,018 | 2.18 | 26.40 | 28.49 |
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
- This plugin does not fully uninstall, leaving 22 options in the database
- gcc_adminmail_content
- gcc_password
- gcc_usermail
- can_compress_scripts
- gcc_usermail_subject
- gcc_fromemail
- gcc_usermail_content
- gcc_adminemail
- gcc_title
- gcc_button
- ...
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/constant-contact/constant-contact.php:278
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: widget, constant, constant contact, contact
constant-contact/constant-contact.php Passed 13 tests
"constant contact" version 10.6's primary PHP file adds more information about the plugin and serves as the entry point for 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 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin812 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 72 | 16 | 436 |
PO File | 2 | 94 | 102 | 236 |
JavaScript | 1 | 2 | 2 | 109 |
CSS | 1 | 0 | 0 | 31 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
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
No PNG images were found in this plugin