Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.27ms] Passed 4 tests
Server-side resources used by Campaign Archive Block for Mailchimp
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.20 ▼8.87 |
Dashboard /wp-admin | 3.34 ▼0.00 | 44.66 ▼17.67 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.20 ▲0.12 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 99.81 ▼10.65 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 47.50 ▲9.04 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Campaign Archive Block for Mailchimp
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲31 | 13.20 ▼1.10 | 1.64 ▼0.32 | 41.37 ▼5.11 |
Dashboard /wp-admin | 2,203 ▲12 | 5.99 ▲0.11 | 96.87 ▼4.70 | 39.42 ▼0.09 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.02 | 39.46 ▲0.24 | 36.89 ▲0.61 |
Add New Post /wp-admin/post-new.php | 6,183 ▲4,639 | 18.79 ▲0.66 | 894.63 ▲291.69 | 60.71 ▲1.73 |
Media Library /wp-admin/upload.php | 1,379 ▼9 | 4.22 ▼0.11 | 94.87 ▼2.82 | 47.13 ▲4.33 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function CABFM\\add_action() in wp-content/plugins/campaign-archive-block-for-mailchimp/lib/load.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/campaign-archive-block-for-mailchimp/campaign-archive-block-for-mailchimp.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 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
5 plugin tags: mailchimp, archive, blocks, campaign, block
campaign-archive-block-for-mailchimp/campaign-archive-block-for-mailchimp.php Passed 13 tests
The main PHP script in "Campaign Archive Block for Mailchimp" version 2.2.0 is automatically included on every request by WordPress
56 characters long description:
Adds a block to show an archive for Mailchimp Campaigns.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,360 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 240 | 646 | 1,018 |
JavaScript | 6 | 28 | 28 | 256 |
JSON | 2 | 0 | 0 | 51 |
Sass | 2 | 8 | 0 | 33 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 17.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 25 | 40.98% |
▷ Public methods | 59 | 96.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.28% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin