Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.94ms] Passed 4 tests
A check of server-side resources used by AS MemberPress Campaign Monitor Integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.74 ▼4.47 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.71 ▲0.85 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.53 ▼3.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.49 ▼8.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.19 ▼2.80 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 200 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for AS MemberPress Campaign Monitor Integration
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.23 ▼0.32 | 1.69 ▼0.37 | 46.07 ▲1.44 |
Dashboard /wp-admin | 2,195 ▲18 | 5.56 ▼0.01 | 96.13 ▲0.70 | 43.08 ▼0.70 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.01 | 38.53 ▲1.41 | 33.24 ▼4.68 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.97 ▼0.17 | 654.91 ▼60.52 | 64.17 ▲7.69 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.15 ▼0.02 | 103.21 ▲6.97 | 44.16 ▲2.29 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 fix the following
- 96× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/client/get_lists.php
- > /wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/client/get_segments.php
- > /wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/journeys/get_journey_opens.php
- > /wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/subscriber/get.php
- > /wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/list/get_segments.php
- > /wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/client/get_drafts.php
- > /wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/campaign/send_preview.php
- > /wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/segment/get_subscribers.php
- > /wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/client/set_payg_billing.php
- > /wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/transactional/classic_groups.php
- 54× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/tests/all_tests.php on line 2
- > PHP Warning
require_once(wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/tests/csrest_template_test.php on line 3
- > PHP Notice
Trying to get property 'Events' of non-object in wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/list/list_webhook_receiver.php on line 25
- > PHP Notice
Trying to get property 'ListID' of non-object in wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/list/list_webhook_receiver.php on line 22
- > PHP Notice
Undefined property: stdClass::$ResultData in wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/subscriber/import.php on line 68
- > PHP Warning
require_once(wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/tests/class_tests/../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/tests/class_tests/response_tests.php on line 3
- > PHP Warning
require_once(wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/tests/csrest_clients_test.php on line 3
- > PHP Warning
require_once(wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/tests/all_tests.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined method CS_REST_General::get_apikey() in wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/get_apikey.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined method CS_REST_Journeys::get_summary() in wp-content/plugins/as-memberpress-campaign-monitor-integration/lib/samples/journeys/get_journey_summary.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please describe screenshot #2 in as-memberpress-campaign-monitor-integration/assets to your readme.txt
as-memberpress-campaign-monitor-integration/memberpress-campaign-monitor.php 85% from 13 tests
Analyzing the main PHP file in "AS MemberPress Campaign Monitor Integration" version 1.0.0
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("as-memberpress-campaign-monitor-integration.php" instead of "memberpress-campaign-monitor.php")
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
No dangerous file extensions were detected8,333 lines of code in 194 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 139 | 1,654 | 3,025 | 6,902 |
JSON | 50 | 0 | 0 | 1,051 |
Markdown | 4 | 152 | 0 | 362 |
YAML | 1 | 2 | 0 | 18 |
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.15 |
Average class complexity | 4.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 12 | 17.39% |
▷ Concrete classes | 57 | 82.61% |
▷ Final classes | 0 | 0.00% |
Methods | 343 | |
▷ Static methods | 2 | 0.58% |
▷ Public methods | 338 | 98.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 1.46% |
Functions | 10 | |
▷ Named functions | 10 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin