Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼4.64ms] Passed 4 tests
Server-side resources used by AffiliateWP - ActiveCampaign
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 38.98 ▲1.19 |
Dashboard /wp-admin | 3.63 ▲0.33 | 45.62 ▼2.20 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 46.64 ▼1.94 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 82.94 ▼15.60 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 39.83 ▲5.24 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by AffiliateWP - ActiveCampaign
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.31 ▼1.07 | 1.74 ▲0.02 | 40.79 ▼0.83 |
Dashboard /wp-admin | 2,213 ▲24 | 4.86 ▼0.26 | 100.18 ▼20.50 | 39.58 ▼3.08 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.00 ▲0.03 | 41.68 ▼0.09 | 36.39 ▲1.13 |
Add New Post /wp-admin/post-new.php | 1,518 ▼10 | 17.62 ▼5.65 | 662.68 ▼15.14 | 66.14 ▲11.88 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.26 ▲0.04 | 97.38 ▼7.54 | 41.64 ▼7.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
The following issues need your attention
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/affiliatewp-activecampaign/includes/libraries/activecampaign-api/Automation.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/affiliatewp-activecampaign/includes/libraries/activecampaign-api/List.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/affiliatewp-activecampaign/includes/libraries/activecampaign-api/Deal.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/affiliatewp-activecampaign/includes/libraries/activecampaign-api/Tracking.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/affiliatewp-activecampaign/includes/libraries/activecampaign-api/Account.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'AC_Contact' not found in wp-content/plugins/affiliatewp-activecampaign/includes/libraries/activecampaign-api/Subscriber.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/affiliatewp-activecampaign/includes/libraries/activecampaign-api/Webhook.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/affiliatewp-activecampaign/includes/libraries/activecampaign-api/Message.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/affiliatewp-activecampaign/includes/libraries/activecampaign-api/Settings.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/affiliatewp-activecampaign/includes/libraries/activecampaign-api/Design.class.php:3
- > 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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: active campaign, email, email marketing, affiliatewp, affwp...
affiliatewp-activecampaign/affiliatewp-activecampaign.php Passed 13 tests
The main file in "AffiliateWP - ActiveCampaign" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
52 characters long description:
Easily add ActiveCampaign integration to AffiliateWP
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
There were no executable files found in this plugin1,576 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 368 | 263 | 1,576 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 8.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 159 | |
▷ Static methods | 1 | 0.63% |
▷ Public methods | 157 | 98.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.26% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
PNG images were not found in this plugin