Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.79ms] Passed 4 tests
This is a short check of server-side resources used by ActiveCampaign Newsletter Subscription
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 33.01 ▼6.84 |
Dashboard /wp-admin | 3.37 ▲0.06 | 43.70 ▼1.97 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.75 ▼3.72 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 79.74 ▼18.63 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.71 ▲0.99 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for ActiveCampaign Newsletter Subscription
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.23 ▼0.35 | 1.64 ▼0.14 | 43.44 ▼3.40 |
Dashboard /wp-admin | 2,214 ▲37 | 5.63 ▼0.05 | 81.80 ▼14.06 | 38.94 ▼0.89 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▲0.02 | 34.17 ▼7.82 | 36.64 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.18 ▼0.04 | 661.91 ▼10.52 | 60.60 ▼3.64 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.20 ▼0.07 | 96.53 ▼0.09 | 41.62 ▼5.51 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/activecampaign-newsletter-subscription/activecampaign-newsletter-subscription.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: newsletter, newsletter subscription, activecampaign, active campaign
activecampaign-newsletter-subscription/activecampaign-newsletter-subscription.php 92% from 13 tests
The principal PHP file in "ActiveCampaign Newsletter Subscription" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
No dangerous file extensions were detected385 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 69 | 126 | 280 |
PO File | 1 | 19 | 22 | 60 |
Markdown | 1 | 15 | 0 | 45 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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 | 4 | |
▷ Global constants | 4 | 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
3 PNG files occupy 0.23MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 23.95KB | 11.33KB | ▼ 52.72% |
screenshot-3.png | 145.58KB | 49.26KB | ▼ 66.17% |
screenshot-1.png | 63.94KB | 33.13KB | ▼ 48.19% |