Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▼3.07ms] Passed 4 tests
A check of server-side resources used by MailChimp Subscribe Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.68 | 46.45 ▲5.20 |
Dashboard /wp-admin | 3.97 ▲0.67 | 55.05 ▲3.58 |
Posts /wp-admin/edit.php | 4.09 ▲0.73 | 49.04 ▼5.36 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.67 | 87.35 ▼14.40 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 39.52 ▲3.90 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_mcsubscribewidget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MailChimp Subscribe Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲137 | 13.60 ▼0.69 | 9.50 ▲7.57 | 42.36 ▼0.98 |
Dashboard /wp-admin | 2,203 ▲15 | 5.76 ▼0.05 | 100.45 ▼15.96 | 39.50 ▼3.51 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.02 | 36.80 ▼1.21 | 34.49 ▲2.11 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.21 ▲5.04 | 628.60 ▼50.94 | 56.52 ▼7.41 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.23 ▲0.00 | 98.76 ▼1.41 | 43.22 ▼1.89 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_mcsubscribewidget
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailchimp-subscribe-widget/McSubscribeWidget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailchimp-subscribe-widget/ajax-handler.php:75
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailchimp-subscribe-widget/McSubscribeWidget.php:3
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png)
mailchimp-subscribe-widget/mailchimp-subscribe-widget.php Passed 13 tests
The principal PHP file in "MailChimp Subscribe Widget" v. 0.9 is loaded by WordPress automatically on each request
48 characters long description:
This plugin creates a "subscribe to list" widget
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
There were no executable files found in this plugin1,146 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 354 | 2,279 | 1,077 |
JavaScript | 1 | 6 | 0 | 27 |
JSON | 1 | 0 | 0 | 21 |
CSS | 1 | 4 | 0 | 14 |
Markdown | 1 | 6 | 0 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 1.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 111 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 111 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 147 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.47MB with 0.31MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 137.88KB | 48.30KB | ▼ 64.97% |
screenshot-2.png | 144.58KB | 50.00KB | ▼ 65.42% |
screenshot-4.png | 149.03KB | 50.31KB | ▼ 66.24% |
screenshot-3.png | 51.83KB | 18.55KB | ▼ 64.21% |