Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.51MB] [CPU: ▼4.30ms] Passed 4 tests
An overview of server-side resources used by Campaign Monitor for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.82 | 51.71 ▲14.39 |
Dashboard /wp-admin | 3.85 ▲0.50 | 48.05 ▼13.40 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 48.32 ▲1.64 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.48 | 88.25 ▼11.01 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 42.26 ▲5.56 |
A/B Testing Editing /wp-admin/admin.php?page=campaign_monitor_ab_testing_editing | 3.93 | 40.30 |
Forms /wp-admin/admin.php?page=campaign-monitor-for-wordpress | 3.96 | 38.92 |
Form Builder /wp-admin/admin.php?page=campaign_monitor_create_builder | 3.92 | 38.49 |
Settings /wp-admin/admin.php?page=campaign_monitor_settings_page | 3.75 | 37.77 |
A/B Testing /wp-admin/admin.php?page=campaign_monitor_ab_testing | 3.76 | 38.39 |
Update /wp-admin/admin.php?page=campaign_monitor_update_page | 3.69 | 32.65 |
Create Form /wp-admin/admin.php?page=campaign_monitor_create_form | 3.70 | 35.00 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 115 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
forms_for_campaign_monitor_post_errors |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Campaign Monitor for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲180 | 13.45 ▼1.08 | 12.26 ▲10.71 | 40.78 ▲1.46 |
Dashboard /wp-admin | 2,228 ▲56 | 5.63 ▼0.04 | 81.97 ▼26.13 | 69.08 ▲27.08 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.15 ▲0.16 | 36.03 ▼3.71 | 36.34 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,708 ▲173 | 22.23 ▲4.27 | 716.58 ▲56.67 | 52.40 ▼32.05 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.21 ▲0.07 | 111.73 ▼2.74 | 50.22 ▲1.07 |
A/B Testing Editing /wp-admin/admin.php?page=campaign_monitor_ab_testing_editing | 889 | 2.02 | 46.72 | 23.94 |
Forms /wp-admin/admin.php?page=campaign-monitor-for-wordpress | 885 | 2.01 | 36.08 | 23.13 |
Form Builder /wp-admin/admin.php?page=campaign_monitor_create_builder | 2,761 | 3.07 | 75.78 | 40.46 |
Settings /wp-admin/admin.php?page=campaign_monitor_settings_page | 1,010 | 2.18 | 24.41 | 27.80 |
A/B Testing /wp-admin/admin.php?page=campaign_monitor_ab_testing | 959 | 2.00 | 25.66 | 26.01 |
Update /wp-admin/admin.php?page=campaign_monitor_update_page | 906 | 2.00 | 30.35 | 27.07 |
Create Form /wp-admin/admin.php?page=campaign_monitor_create_form | 989 | 1.99 | 24.37 | 40.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- forms_for_campaign_monitor_post_errors
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=campaign_monitor_create_builder
- > Warning in wp-content/plugins/forms-for-campaign-monitor/forms/core/Form.php+232
Invalid argument supplied for foreach()
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/forms-for-campaign-monitor/forms/views/admin/create.php
- > /wp-content/plugins/forms-for-campaign-monitor/campaign-monitor.php
- 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'forms\\core\\Settings' not found in wp-content/plugins/forms-for-campaign-monitor/forms/views/admin/settings.php:10
- > PHP Fatal error
Uncaught Error: Class 'forms\\core\\Settings' not found in wp-content/plugins/forms-for-campaign-monitor/forms/views/admin/connect.php:9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/forms-for-campaign-monitor/forms/views/templates/webfont.php:12
- > PHP Fatal error
Uncaught Error: Class 'forms\\core\\Application' not found in wp-content/plugins/forms-for-campaign-monitor/forms/views/admin/create.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/forms-for-campaign-monitor/forms/views/admin/ab-testing.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/forms-for-campaign-monitor/forms/views/public/recaptcha.php:3
- > PHP Fatal error
Uncaught Error: Interface 'forms\\core\\ReCaptcha\\RequestMethod' not found in wp-content/plugins/forms-for-campaign-monitor/forms/core/ReCaptcha/RequestMethod/Post.php:35
- > PHP Fatal error
Uncaught Error: Class 'SunriseIntegration\\CampaignMonitor\\AbstractObject' not found in wp-content/plugins/forms-for-campaign-monitor/forms/SunriseIntegration/CampaignMonitor/Authorization.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/forms-for-campaign-monitor/forms/views/admin/builder.php:10
- > PHP Fatal error
Uncaught Error: Class 'forms\\core\\Config' not found in wp-content/plugins/forms-for-campaign-monitor/forms/core/Options.php:5
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid URI: "N/A"
forms-for-campaign-monitor/campaign-monitor.php 92% from 13 tests
The main PHP script in "Campaign Monitor for WordPress" version 2.8.12 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("forms-for-campaign-monitor.php" instead of "campaign-monitor.php")
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
No dangerous file extensions were detected11,949 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 2,314 | 2,350 | 8,605 |
PO File | 3 | 791 | 1,258 | 1,801 |
JavaScript | 5 | 287 | 84 | 1,005 |
CSS | 3 | 69 | 10 | 493 |
SVG | 3 | 1 | 0 | 29 |
JSON | 1 | 0 | 0 | 15 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 11.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 174.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 10 | 22.22% |
▷ Concrete classes | 35 | 77.78% |
▷ Final classes | 0 | 0.00% |
Methods | 443 | |
▷ Static methods | 103 | 23.25% |
▷ Public methods | 424 | 95.71% |
▷ Protected methods | 10 | 2.26% |
▷ Private methods | 9 | 2.03% |
Functions | 10 | |
▷ Named functions | 6 | 60.00% |
▷ Anonymous functions | 4 | 40.00% |
Constants | 42 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 42 | 100.00% |
▷ Public constants | 42 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 PNG files occupy 0.27MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
forms/views/admin/images/option-bar.png | 1.10KB | 0.51KB | ▼ 53.39% |
forms/views/public/images/PowerdByCampMon@2x.png | 7.85KB | 2.99KB | ▼ 61.88% |
forms/views/admin/images/cm-logo-horizontal.png | 1.86KB | 2.20KB | 0.00% |
forms/views/admin/images/option-lightbox.png | 1.74KB | 0.79KB | ▼ 54.87% |
forms/views/admin/images/cm-logo.png | 2.33KB | 2.63KB | 0.00% |