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.12MB] [CPU: ▼2.48ms] Passed 4 tests
A check of server-side resources used by Campaign Monitor Dual Registration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.26 ▼0.67 |
Dashboard /wp-admin | 3.42 ▲0.11 | 48.75 ▼4.93 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 46.87 ▼3.75 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 94.95 ▲6.66 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.98 ▼0.58 |
CM Dual Registration /wp-admin/options-general.php?page=cmdr_plugin | 3.32 | 33.36 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 173 new files
Database: no new tables, 7 new options
New WordPress options |
---|
cmdr_settings |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Campaign Monitor Dual Registration
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.27 ▼1.11 | 1.61 ▼0.51 | 41.72 ▼7.80 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▲0.78 | 108.55 ▼6.23 | 42.62 ▼3.07 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.00 ▼0.01 | 33.37 ▼2.29 | 34.62 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,545 ▲8 | 18.19 ▼5.01 | 609.94 ▼49.22 | 52.55 ▼7.96 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.08 | 100.88 ▲1.65 | 41.95 ▼3.54 |
CM Dual Registration /wp-admin/options-general.php?page=cmdr_plugin | 847 | 2.07 | 24.27 | 29.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- cmdr_settings
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 83× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/samples/get_clients.php
- > /wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/samples/get_billing_details.php
- > /wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/samples/list/update_custom_field.php
- > /wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/samples/list/get_bounced_subscribers.php
- > /wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/samples/list/create_custom_field.php
- > /wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/samples/campaign/create_from_template.php
- > /wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/samples/client/unsuppress.php
- > /wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/samples/client/get_scheduled.php
- > /wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/samples/client/get_campaigns.php
- > /wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/samples/authentication/auth_with_api_key.php
- 40× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/samples/subscriber/import.php on line 70
- > PHP Warning
require_once(wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/tests/csrest_segments_test.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/tests/all_tests.php on line 2
- > PHP Warning
require_once(wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/tests/csrest_template_test.php on line 3
- > PHP Notice
Undefined property: stdClass::$ResultData in wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/samples/subscriber/import.php on line 68
- > PHP Notice
Trying to get property 'ListID' of non-object in wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/samples/list/list_webhook_receiver.php on line 22
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/samples/list/list_webhook_receiver.php on line 25
- > PHP Warning
require_once(wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/tests/csrest_subscribers_test.php on line 3
- > PHP Warning
require_once(wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/tests/csrest_campaigns_test.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/campaign-monitor-dual-registration/campaignmonitor-createsend-php/tests/csrest_clients_test.php on line 3
- > PHP Warning
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: campaign monitor, add users, user management, mailing list
campaign-monitor-dual-registration/campaign-monitor-dual-registration.php Passed 13 tests
The main PHP script in "Campaign Monitor Dual Registration" version 1.0.8 is automatically included on every request by WordPress
79 characters long description:
Automatically add new Wordpress users to your mailing list on Campaign Monitor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin7,618 lines of code in 167 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 1,429 | 2,305 | 6,274 |
JSON | 48 | 0 | 0 | 1,013 |
Markdown | 4 | 126 | 0 | 325 |
YAML | 1 | 2 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 6.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 9 | 16.67% |
▷ Concrete classes | 45 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 296 | |
▷ Static methods | 4 | 1.35% |
▷ Public methods | 296 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 37 | |
▷ Global constants | 37 | 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 are no PNG files in this plugin