Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.89ms] Passed 4 tests
This is a short check of server-side resources used by Single Mailchimp
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.12 | 48.92 ▼1.33 |
Dashboard /wp-admin | 3.75 ▲0.18 | 50.29 ▼7.58 |
Posts /wp-admin/edit.php | 3.80 ▲0.12 | 53.86 ▲1.15 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.14 | 88.96 ▼11.81 |
Media Library /wp-admin/upload.php | 3.61 ▲0.12 | 38.98 ▲3.28 |
Single Mailchimp /wp-admin/options-general.php?page=single-mailchimp-menu | 3.58 | 38.13 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_single_mailchimp_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Single Mailchimp
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.40 ▲0.05 | 2.33 ▼0.14 | 45.64 ▲4.44 |
Dashboard /wp-admin | 2,200 ▲23 | 5.52 ▼0.16 | 89.06 ▲0.50 | 38.01 ▼6.01 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.00 ▲0.01 | 38.07 ▼1.39 | 34.27 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,533 ▼12 | 23.51 ▲0.17 | 676.27 ▼17.97 | 53.66 ▲1.53 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.24 ▲0.02 | 99.52 ▲4.53 | 41.42 ▼0.20 |
Single Mailchimp /wp-admin/options-general.php?page=single-mailchimp-menu | 1,092 | 2.03 | 26.47 | 62.04 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_single_mailchimp_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/single-mailchimp/admin/single-mailchimp-admin.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/single-mailchimp/admin/register-admin.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/single-mailchimp/admin/register-admin.php:26
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/single-mailchimp/widget.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Wordpress Editor with Single Mailchimp), #2 (Close up of Single Mailchimp Settings)
- Plugin Name: You should set the name of your plugin on the first line (
=== single-mailchimp ===
)
single-mailchimp/single-mailchimp.php Passed 13 tests
"Single Mailchimp" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
43 characters long description:
Mailchimp Newsletterform with Single-Opt-In
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
Good job! No executable or dangerous file extensions detected769 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 149 | 60 | 492 |
CSS | 3 | 52 | 3 | 261 |
JavaScript | 2 | 12 | 0 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.16MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 70.62KB | 20.01KB | ▼ 71.66% |
screenshot-2.png | 96.47KB | 27.60KB | ▼ 71.39% |