Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/comments-to-activecampaign/metabox.php+60
syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.91ms] Passed 4 tests
Server-side resources used by Comments To ActiveCampaign
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.43 ▼3.53 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.91 ▲3.46 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.05 ▼4.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.54 ▼2.96 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.00 ▼0.62 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Comments To ActiveCampaign
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.19 ▼1.56 | 4.90 ▲2.97 | 43.57 ▼4.54 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▼0.05 | 101.32 ▼5.45 | 39.03 ▼3.84 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▼0.00 | 40.84 ▼0.79 | 35.40 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.28 ▼0.02 | 665.97 ▼16.73 | 58.13 ▲4.10 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.18 | 93.89 ▼9.52 | 40.99 ▼2.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
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
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/comments-to-activecampaign/ac/List.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comments-to-activecampaign/admin-menu.php:12
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/comments-to-activecampaign/ac/Form.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/comments-to-activecampaign/ac/Webhook.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/comments-to-activecampaign/ac/Message.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/comments-to-activecampaign/ac/Settings.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/comments-to-activecampaign/ac/Design.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/comments-to-activecampaign/ac/Campaign.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/comments-to-activecampaign/comments-to-activecampaign.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comments-to-activecampaign/activecampaign.php:50
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
5 plugin tags: comments to leads, comments to activecampaign, comments, activecampaign, leads
comments-to-activecampaign/comments-to-activecampaign.php Passed 13 tests
The primary PHP file in "Comments To ActiveCampaign" version 1.0 is used by WordPress to initiate all plugin functionality
71 characters long description:
The simplest way to collect leads from your comments to ActiveCampaign.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,714 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 353 | 129 | 1,700 |
JavaScript | 1 | 1 | 1 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 1.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 157 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 157 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin