Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.30ms] Passed 4 tests
A check of server-side resources used by WC-AC Hook
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.56 ▼3.95 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.14 ▼3.21 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 46.24 ▼1.19 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 82.57 ▼16.79 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 33.89 ▼1.24 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WC-AC Hook
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.40 ▼1.16 | 1.59 ▼0.20 | 41.71 ▼8.84 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▼0.03 | 106.88 ▲1.16 | 36.30 ▼6.18 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.01 | 40.17 ▼1.29 | 35.13 ▲2.26 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.38 ▲5.87 | 696.44 ▲7.69 | 53.32 ▼1.57 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▲0.01 | 94.11 ▼8.89 | 42.11 ▼4.94 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% 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 50% 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
- 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'mtreherne\\WC_AC_Hook\\ActiveCampaign' not found in wp-content/plugins/wc-ac-hook/activecampaign-api-php/includes/Organization.class.php:4
- > PHP Fatal error
Uncaught Error: Class 'mtreherne\\WC_AC_Hook\\ActiveCampaign' not found in wp-content/plugins/wc-ac-hook/activecampaign-api-php/includes/Deal.class.php:4
- > PHP Fatal error
Uncaught Error: Class 'mtreherne\\WC_AC_Hook\\ActiveCampaign' not found in wp-content/plugins/wc-ac-hook/activecampaign-api-php/includes/Tracking.class.php:4
- > PHP Fatal error
Uncaught Error: Class 'mtreherne\\WC_AC_Hook\\ActiveCampaign' not found in wp-content/plugins/wc-ac-hook/activecampaign-api-php/includes/Contact.class.php:4
- > PHP Fatal error
Uncaught Error: Class 'mtreherne\\WC_AC_Hook\\ActiveCampaign' not found in wp-content/plugins/wc-ac-hook/activecampaign-api-php/includes/Form.class.php:4
- > PHP Fatal error
Uncaught Error: Class 'mtreherne\\WC_AC_Hook\\ActiveCampaign' not found in wp-content/plugins/wc-ac-hook/activecampaign-api-php/includes/Group.class.php:4
- > PHP Fatal error
Uncaught Error: Class 'mtreherne\\WC_AC_Hook\\ActiveCampaign' not found in wp-content/plugins/wc-ac-hook/activecampaign-api-php/includes/Auth.class.php:4
- > PHP Fatal error
Uncaught Error: Class 'mtreherne\\WC_AC_Hook\\ActiveCampaign' not found in wp-content/plugins/wc-ac-hook/activecampaign-api-php/includes/Automation.class.php:4
- > PHP Fatal error
Uncaught Error: Class 'mtreherne\\WC_AC_Hook\\ActiveCampaign' not found in wp-content/plugins/wc-ac-hook/activecampaign-api-php/includes/Tag.class.php:4
- > PHP Fatal error
Uncaught Error: Class 'mtreherne\\WC_AC_Hook\\ActiveCampaign' not found in wp-content/plugins/wc-ac-hook/activecampaign-api-php/includes/Message.class.php:4
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: activecampaign, woocommerce
wc-ac-hook/wc-ac-hook.php Passed 13 tests
The entry point to "WC-AC Hook" version 1.4.2 is a PHP file that has certain tags in its header comment area
139 characters long description:
Integrates WooCommerce with ActiveCampaign by adding or updating a contact on ActiveCampaign with specified tags, when an order is created.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,922 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 427 | 284 | 1,852 |
Markdown | 1 | 37 | 0 | 46 |
JSON | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 9.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 178 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 177 | 99.44% |
▷ Protected methods | 1 | 0.56% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin