Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲1.92ms] Passed 4 tests
A check of server-side resources used by WP Chimp
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 46.72 ▲3.54 |
Dashboard /wp-admin | 3.50 ▲0.19 | 56.03 ▼4.93 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 55.32 ▼0.31 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 110.05 ▲15.88 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 47.91 ▲9.37 |
MailChimp /wp-admin/options-general.php?page=wp-chimp | 3.38 | 39.26 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 60 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_chimp_lists |
New WordPress options |
---|
db_upgraded |
widget_wp-chimp-subscription-form |
wp_chimp_lists_db_version |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Chimp
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲101 | 13.70 ▲0.49 | 9.84 ▲7.84 | 43.13 ▼4.94 |
Dashboard /wp-admin | 2,210 ▲4 | 5.85 ▲0.01 | 99.59 ▼16.56 | 42.43 ▼2.86 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.04 | 35.00 ▼6.92 | 33.25 ▼2.51 |
Add New Post /wp-admin/post-new.php | 6,421 ▲4,886 | 20.17 ▼2.79 | 844.75 ▲109.84 | 68.60 ▼3.22 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.15 ▼0.07 | 101.47 ▼4.32 | 40.58 ▼4.56 |
MailChimp /wp-admin/options-general.php?page=wp-chimp | 1,158 | 8.95 | 187.30 | 27.37 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_chimp_lists
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_wp-chimp-subscription-form
- widget_theysaidso_widget
- theysaidso_admin_options
- wp_chimp_lists_db_version
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 33× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/wp-chimp/src/core/lists/class-query.php
- > /wp-content/plugins/wp-chimp/src/core/class-languages.php
- > /wp-content/plugins/wp-chimp/src/admin/partials/class-page.php
- > /wp-content/plugins/wp-chimp/src/subscription-form/class-subscription-form.php
- > /wp-content/plugins/wp-chimp/src/subscription-form/class-shortcode.php
- > /wp-content/plugins/wp-chimp/src/admin/partials/interface-tab.php
- > /wp-content/plugins/wp-chimp/src/admin/partials/class-fields.php
- > /wp-content/plugins/wp-chimp/src/subscription-form/template-tags.php
- > /wp-content/plugins/wp-chimp/src/core/functions.php
- > /wp-content/plugins/wp-chimp/src/core/endpoints/class-rest-subscription-forms-controller.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: widget, form, shortocode, gutenberg, subscription...
wp-chimp/wp-chimp.php Passed 13 tests
The primary PHP file in "WP Chimp" version 0.7.4 is used by WordPress to initiate all plugin functionality
53 characters long description:
Lean MailChimp subscription form plugin for WordPress
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 detected7,510 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 1,133 | 3,217 | 3,638 |
JavaScript | 10 | 578 | 743 | 2,939 |
CSS | 8 | 168 | 4 | 933 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 28 | |
▷ Abstract classes | 3 | 10.71% |
▷ Concrete classes | 25 | 89.29% |
▷ Final classes | 0 | 0.00% |
Methods | 258 | |
▷ Static methods | 55 | 21.32% |
▷ Public methods | 215 | 83.33% |
▷ Protected methods | 20 | 7.75% |
▷ Private methods | 23 | 8.91% |
Functions | 34 | |
▷ Named functions | 33 | 97.06% |
▷ Anonymous functions | 1 | 2.94% |
Constants | 12 | |
▷ Global constants | 5 | 41.67% |
▷ Class constants | 7 | 58.33% |
▷ Public constants | 7 | 100.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
There are no PNG files in this plugin