Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.70ms] Passed 4 tests
Analyzing server-side resources used by SYNC AC with WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 33.94 ▼14.20 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.35 ▼1.34 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 54.29 ▲4.37 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.02 | 88.69 ▼3.62 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 42.92 ▲5.65 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by SYNC AC with WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 14.47 ▼0.18 | 1.52 ▼0.37 | 37.53 ▼13.15 |
Dashboard /wp-admin | 2,222 ▲31 | 4.82 ▼0.10 | 112.72 ▲3.71 | 46.31 ▲3.72 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.05 ▲0.00 | 38.70 ▼0.95 | 35.88 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.02 ▼0.23 | 650.20 ▲28.08 | 52.83 ▲3.40 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.20 ▼0.02 | 94.85 ▼4.78 | 42.35 ▼2.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/sync-ac-with-wp/activecampaign-api-php/examples-composer/index.php on line 3
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/sync-ac-with-wp/activecampaign-api-php/examples-composer/index.php on line 3
- > PHP Warning
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 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: when a new user registered, integrates wordpress with activecampaign by adding new users information to contact on activecampaign
sync-ac-with-wp/wc-ac-sync.php 85% from 13 tests
The principal PHP file in "SYNC AC with WP" v. 1.3.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sync-ac-with-wp.php" instead of "wc-ac-sync.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,908 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 403 | 190 | 1,827 |
Markdown | 1 | 35 | 0 | 42 |
JSON | 2 | 0 | 0 | 39 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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 | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected