Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.52MB] [CPU: ▼310.89ms] Passed 4 tests
An overview of server-side resources used by Paid Memberships Pro - Constant Contact Add On
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼0.73 | 9.54 ▼26.07 |
Dashboard /wp-admin | 2.13 ▼0.92 | 9.95 ▼36.81 |
Posts /wp-admin/edit.php | 2.13 ▼0.98 | 9.13 ▼35.60 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.30 | 9.82 ▼1,135.14 |
Media Library /wp-admin/upload.php | 2.13 ▼0.88 | 9.84 ▼36.01 |
PMPro Constant Contact /wp-admin/options-general.php?page=pmprocc_options | 2.13 | 10.07 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 2 new options
New WordPress options |
---|
pmprocc_options |
pmprocc_all_lists |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Paid Memberships Pro - Constant Contact Add On
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,734 ▲128 | 15.76 ▼0.08 | 8.29 ▲0.48 | 58.89 ▲13.84 |
Dashboard /wp-admin | 2,958 ▲108 | 5.89 ▲0.03 | 133.71 ▼5.69 | 108.02 ▲0.98 |
Posts /wp-admin/edit.php | 2,760 ▲54 | 2.69 ▲0.00 | 66.20 ▲0.27 | 93.96 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,555 ▲74 | 21.17 ▲2.66 | 309.48 ▼67.39 | 122.80 ▲15.09 |
Media Library /wp-admin/upload.php | 1,825 ▲124 | 4.98 ▼0.01 | 127.12 ▼34.71 | 108.24 ▼17.32 |
PMPro Constant Contact /wp-admin/options-general.php?page=pmprocc_options | 1,199 | 2.21 | 55.29 | 118.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-includes/wp-db.php+648
Undefined property: wpdb::$pmpro_membership_levels
- This plugin does not fully uninstall, leaving 2 options in the database
- pmprocc_options
- pmprocc_all_lists
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pmprocc_options
- > Notice in wp-includes/wp-db.php+648
Undefined property: wpdb::$pmpro_membership_levels
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
The following issues need your attention
- 35× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/pmpro-constant-contact/includes/Ctct/Components/EmailMarketing/TestSend.php:13
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/pmpro-constant-contact/includes/Ctct/Components/Contacts/EmailAddress.php:13
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/pmpro-constant-contact/includes/Ctct/Components/Activities/AddContacts.php:17
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Services\\BaseService' not found in wp-content/plugins/pmpro-constant-contact/includes/Ctct/Services/ContactService.php:15
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Services\\BaseService' not found in wp-content/plugins/pmpro-constant-contact/includes/Ctct/Services/ListService.php:16
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/pmpro-constant-contact/includes/Ctct/Components/Tracking/ForwardActivity.php:14
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/pmpro-constant-contact/includes/Ctct/Components/Tracking/OpenActivity.php:14
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/pmpro-constant-contact/includes/Ctct/Components/EmailMarketing/ClickThroughDetails.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Ctct\\Auth\\CtctDataStore' not found in wp-content/plugins/pmpro-constant-contact/includes/Ctct/Auth/SessionDataStore.php:12
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/pmpro-constant-contact/includes/Ctct/Components/Activities/ExportContacts.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (General settings for all members/subscribers list and unsubscribe rules.), #2 (Membership-level specific list subscription settings.)
pmpro-constant-contact/pmpro-constant-contact.php Passed 13 tests
The entry point to "Paid Memberships Pro - Constant Contact Add On" version 1.0.2 is a PHP file that has certain tags in its header comment area
66 characters long description:
Sync your WordPress users and members with Constant Contact lists.
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
Success! There were no dangerous files found in this plugin2,848 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 620 | 1,934 | 2,848 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 188 | |
▷ Static methods | 28 | 14.89% |
▷ Public methods | 182 | 96.81% |
▷ Protected methods | 2 | 1.06% |
▷ Private methods | 4 | 2.13% |
Functions | 27 | |
▷ Named functions | 26 | 96.30% |
▷ Anonymous functions | 1 | 3.70% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.05MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 33.55KB | 29.85KB | ▼ 11.02% |
screenshot-2.png | 13.13KB | 10.65KB | ▼ 18.87% |