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
This plugin's installer ran successfully
Server metrics [RAM: ▲2.00MB] [CPU: ▲12.10ms] Passed 4 tests
A check of server-side resources used by Constant Contact for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.41 ▲1.95 | 62.73 ▲18.55 |
Dashboard /wp-admin | 5.33 ▲1.99 | 67.64 ▲3.84 |
Posts /wp-admin/edit.php | 5.38 ▲2.02 | 70.56 ▲20.41 |
Add New Post /wp-admin/post-new.php | 7.93 ▲2.05 | 105.04 ▲5.61 |
Media Library /wp-admin/upload.php | 5.25 ▲2.03 | 68.26 ▲31.29 |
Tags /wp-admin/edit-tags.php?taxonomy=wp_log_type&post_type=wp_log | 5.26 | 61.71 |
Activity Log /wp-admin/admin.php?page=constant-contact-log | 5.23 | 57.94 |
Logs /wp-admin/edit.php?post_type=wp_log | 5.30 | 57.14 |
Constant Contact /wp-admin/admin.php?page=constant-contact-api | 5.19 | 59.36 |
Add New /wp-admin/post-new.php?post_type=wp_log | 5.38 | 83.37 |
Server storage [IO: ▲4.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 560 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Constant Contact for WordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,065 ▲319 | 13.67 ▼0.46 | 8.31 ▲6.32 | 40.48 ▼1.59 |
Dashboard /wp-admin | 2,371 ▲183 | 5.83 ▲0.96 | 113.48 ▼0.40 | 77.73 ▲32.77 |
Posts /wp-admin/edit.php | 2,278 ▲189 | 2.17 ▲0.18 | 39.28 ▼3.27 | 35.19 ▲0.44 |
Add New Post /wp-admin/post-new.php | 1,694 ▲166 | 22.58 ▲4.30 | 699.32 ▲57.39 | 57.79 ▼4.60 |
Media Library /wp-admin/upload.php | 1,574 ▲186 | 4.20 ▼0.00 | 115.42 ▲10.43 | 92.89 ▲45.51 |
Tags /wp-admin/edit-tags.php?taxonomy=wp_log_type&post_type=wp_log | 1,766 | 2.33 | 31.00 | 39.46 |
Activity Log /wp-admin/admin.php?page=constant-contact-log | 1,009 | 2.08 | 26.03 | 30.26 |
Logs /wp-admin/edit.php?post_type=wp_log | 1,243 | 1.97 | 36.33 | 31.51 |
Constant Contact /wp-admin/admin.php?page=constant-contact-api | 1,049 | 2.05 | 39.48 | 49.26 |
Add New /wp-admin/post-new.php?post_type=wp_log | 2,399 | 7.67 | 169.29 | 122.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 172× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/constant-contact-api/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/constant-contact-api/vendor/guzzlehttp/psr7/src/NoSeekStream.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/constant-contact-api/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
- > PHP Warning
Use of undefined constant CTCT_FILE_URL - assumed 'CTCT_FILE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/constant-contact-api/lib/eventspot/views/promo.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/constant-contact-api/classes/class.ctct_global.php:17
- > PHP Fatal error
Uncaught Error: Class 'CTCT_Admin_Page' not found in wp-content/plugins/constant-contact-api/lib/form-designer/form-designer.php:10
- > PHP Notice
Undefined variable: cc_form_selected_id in wp-content/plugins/constant-contact-api/lib/form-designer/views/form-designer.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/constant-contact-api/lib/eventspot/views/view.event-view.php:9
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\EmailMarketing\\Campaign' not found in wp-content/plugins/constant-contact-api/classes/class.kwscampaign.php:17
- > PHP Notice
Undefined variable: Event in wp-content/plugins/constant-contact-api/lib/eventspot/views/view.event-view.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (The administration screen is the landing page for all the functionality of the plugin.), #2 (Form Designer - custom form designer built right into the plugin), #3 (View campaign details on the Campaigns screen), #4 (Edit Contacts inside the plugin), #5 (Update list names), #6 (Embed Events inline and view EventSpot event details)
constant-contact-api/constant-contact-api.php Passed 13 tests
Analyzing the main PHP file in "Constant Contact for WordPress" version 4.1.1
66 characters long description:
Powerfully integrate Constant Contact into your WordPress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin31,452 lines of code in 330 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 224 | 4,749 | 9,350 | 18,810 |
JavaScript | 32 | 834 | 1,097 | 4,233 |
Markdown | 12 | 910 | 0 | 3,138 |
CSS | 16 | 72 | 70 | 1,372 |
PO File | 1 | 582 | 676 | 1,337 |
LESS | 22 | 190 | 38 | 1,126 |
JSON | 9 | 0 | 0 | 575 |
HTML | 6 | 50 | 0 | 460 |
SVG | 1 | 0 | 0 | 284 |
YAML | 4 | 17 | 0 | 69 |
make | 2 | 11 | 0 | 31 |
XML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 174.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 162 | |
▷ Abstract classes | 3 | 1.85% |
▷ Concrete classes | 159 | 98.15% |
▷ Final classes | 8 | 5.03% |
Methods | 1,136 | |
▷ Static methods | 162 | 14.26% |
▷ Public methods | 942 | 82.92% |
▷ Protected methods | 68 | 5.99% |
▷ Private methods | 126 | 11.09% |
Functions | 226 | |
▷ Named functions | 139 | 61.50% |
▷ Anonymous functions | 87 | 38.50% |
Constants | 53 | |
▷ Global constants | 13 | 24.53% |
▷ Class constants | 40 | 75.47% |
▷ Public constants | 40 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
29 PNG files occupy 0.22MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/eventspot/images/calendar_add.png | 0.71KB | 0.76KB | 0.00% |
js/alertify.js/example/assets/img/dialogs.png | 48.58KB | 17.03KB | ▼ 64.95% |
images/admin/btn_see_how_blue.png | 9.74KB | 9.08KB | ▼ 6.79% |
lib/form-designer/css/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/admin/logo-horizontal.png | 23.67KB | 7.96KB | ▼ 66.37% |