Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.95MB] [CPU: ▼34.77ms] Passed 4 tests
This is a short check of server-side resources used by Simple Constant Contact
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.86 ▼2.33 |
Dashboard /wp-admin | 3.00 ▼0.31 | 20.10 ▼30.60 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 28.06 ▼26.38 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 25.54 ▼69.91 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 23.41 ▼12.17 |
Simple Constant Contact /wp-admin/options-general.php?page=simple-cc-plugin | 3.00 | 22.50 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 9 new options
New WordPress options |
---|
simpleCC_redirect |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
simpleCC_secret |
theysaidso_admin_options |
simpleCC_apikey |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Simple Constant Contact: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.10 ▼0.51 | 1.85 ▲0.01 | 42.17 ▼1.28 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.00 | 93.68 ▼5.63 | 43.58 ▼2.03 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.01 | 39.71 ▲2.20 | 34.97 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,540 ▲9 | 18.09 ▼5.18 | 622.98 ▲10.75 | 66.22 ▲16.42 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.18 ▼0.03 | 104.06 ▼2.69 | 42.02 ▼4.16 |
Simple Constant Contact /wp-admin/options-general.php?page=simple-cc-plugin | 892 | 1.99 | 22.77 | 29.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/simple-constant-contact/simple_constant_contact.php+197
Undefined index: simpleCC_submit
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-cc-plugin
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-constant-contact/simple_constant_contact.php
- 34× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Services\\BaseService' not found in wp-content/plugins/simple-constant-contact/src/Ctct/Services/CampaignScheduleService.php:14
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Services\\BaseService' not found in wp-content/plugins/simple-constant-contact/src/Ctct/Services/ListService.php:15
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/simple-constant-contact/src/Ctct/Components/Tracking/OpenActivity.php:14
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Services\\BaseService' not found in wp-content/plugins/simple-constant-contact/src/Ctct/Services/ActivityService.php:15
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/simple-constant-contact/src/Ctct/Components/Tracking/SendActivity.php:13
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Services\\BaseService' not found in wp-content/plugins/simple-constant-contact/src/Ctct/Services/EmailMarketingService.php:14
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Services\\BaseService' not found in wp-content/plugins/simple-constant-contact/src/Ctct/Services/ContactTrackingService.php:20
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/simple-constant-contact/src/Ctct/Components/Contacts/CustomField.php:13
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/simple-constant-contact/src/Ctct/Components/Tracking/TrackingSummary.php:13
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/simple-constant-contact/src/Ctct/Components/Activities/ExportContacts.php:13
- > 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 96% from 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
10 plugin tags: contact, constant contact, signup, plugin, sign-up...
simple-constant-contact/simple_constant_contact.php 92% from 13 tests
The entry point to "Simple Constant Contact" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-constant-contact.php" instead of "simple_constant_contact.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,506 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 552 | 1,926 | 2,489 |
JavaScript | 1 | 1 | 3 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 204 | |
▷ Static methods | 29 | 14.22% |
▷ Public methods | 194 | 95.10% |
▷ Protected methods | 2 | 0.98% |
▷ Private methods | 8 | 3.92% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin