Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.93ms] Passed 4 tests
Analyzing server-side resources used by Mailchimp as a Registration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 35.31 ▼7.66 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.15 ▼0.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.98 ▲1.68 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.11 ▼25.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.42 ▲1.64 |
Mailchimp As A Registration /wp-admin/options-general.php?page=mailchimp_admin | 3.17 | 33.10 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Mailchimp as a Registration: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.18 ▼1.57 | 1.63 ▼0.56 | 40.71 ▼11.28 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼0.02 | 108.28 ▲1.08 | 40.21 ▼5.52 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.04 ▲0.03 | 39.18 ▼2.16 | 35.50 ▲1.38 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.21 ▼0.12 | 675.26 ▲76.59 | 56.62 ▲9.56 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.01 | 94.58 ▼0.24 | 42.79 ▲0.45 |
Mailchimp As A Registration /wp-admin/options-general.php?page=mailchimp_admin | 1,324 | 5.78 | 117.04 | 77.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=mailchimp_admin
- > Notice in wp-content/plugins/mailchimp-as-a-registration/mailchimpaar.php+34
Undefined offset: 1
- > GET request to /wp-admin/options-general.php?page=mailchimp_admin
- > Notice in wp-content/plugins/mailchimp-as-a-registration/mailchimpaar.php+328
Undefined variable: lists
- > GET request to /wp-admin/options-general.php?page=mailchimp_admin
- > Notice in wp-content/plugins/mailchimp-as-a-registration/mailchimpaar.php+344
Undefined variable: campaigns
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 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 get_option() in wp-content/plugins/mailchimp-as-a-registration/mailchimpaar.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Please describe screenshot #1 in mailchimp-as-a-registration/assets to your readme.txt
mailchimp-as-a-registration/mailchimpaar.php 85% from 13 tests
The principal PHP file in "Mailchimp as a Registration" v. 1.1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mailchimp-as-a-registration.php" instead of "mailchimpaar.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 223 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected295 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 55 | 33 | 276 |
Markdown | 1 | 13 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin