Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲0.12ms] Passed 4 tests
Analyzing server-side resources used by Another Mailchimp Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.92 ▲4.20 |
Dashboard /wp-admin | 3.42 ▲0.11 | 43.28 ▼3.34 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.45 ▲0.81 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 90.69 ▼1.20 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.91 ▲5.18 |
Mailchimp /wp-admin/options-general.php?page=another-mailchimp-widget/lib/an_mc_plugin.class.php | 3.31 | 32.29 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_an-mailchimp |
Browser metrics Passed 4 tests
Checking browser requirements for Another Mailchimp Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.22 ▼1.16 | 4.71 ▲2.91 | 43.47 ▲2.55 |
Dashboard /wp-admin | 2,213 ▲22 | 4.85 ▲0.02 | 106.30 ▲6.96 | 40.37 ▲2.72 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▲0.04 | 39.15 ▼1.78 | 34.41 ▼2.13 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.10 ▼0.25 | 667.54 ▲4.52 | 54.34 ▼8.28 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▼0.02 | 95.14 ▼7.96 | 40.74 ▼6.78 |
Mailchimp /wp-admin/options-general.php?page=another-mailchimp-widget/lib/an_mc_plugin.class.php | 904 | 2.02 | 22.94 | 33.90 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_an-mailchimp
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/another-mailchimp-widget/templates/notice/empty-list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/another-mailchimp-widget/templates/notice/invalid-api-key.php:2
- > PHP Notice
Undefined variable: lists in wp-content/plugins/another-mailchimp-widget/templates/mailchimp-lists.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/another-mailchimp-widget/templates/notice/change-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/another-mailchimp-widget/another-mailchimp-widget.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/another-mailchimp-widget/lib/Default_MC.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/another-mailchimp-widget/shortcodes/registrator.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/another-mailchimp-widget/templates/admin/notice.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/another-mailchimp-widget/lib/Default_MC.php:8
- > PHP Fatal error
Uncaught Error: Class 'AN_MC_Plugin' not found in wp-content/plugins/another-mailchimp-widget/shortcodes/forms/an_shortcode_mailchimp.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #2, #3 in another-mailchimp-widget/assets to your readme.txt
another-mailchimp-widget/another-mailchimp-widget.php Passed 13 tests
This is the main PHP file of "Another Mailchimp Widget" version 2.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
Simple Mailchimp subscription form to your lists and groups.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,590 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 369 | 615 | 1,471 |
JavaScript | 4 | 32 | 8 | 107 |
LESS | 1 | 0 | 0 | 10 |
CSS | 1 | 0 | 0 | 1 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 23.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 6 | 6.06% |
▷ Public methods | 74 | 74.75% |
▷ Protected methods | 17 | 17.17% |
▷ Private methods | 8 | 8.08% |
Functions | 12 | |
▷ Named functions | 8 | 66.67% |
▷ Anonymous functions | 4 | 33.33% |
Constants | 6 | |
▷ Global constants | 6 | 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 images were found in this plugin