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.03MB] [CPU: ▲1.76ms] Passed 4 tests
Server-side resources used by Post to Mailchimp
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.70 ▲0.08 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.52 ▲3.97 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.60 ▲0.12 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 99.49 ▲10.77 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.69 ▲2.85 |
Post to Mailchimp /wp-admin/options-general.php?page=ph_mailchimp_settings | 3.22 | 31.09 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Post to Mailchimp
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.69 ▲0.42 | 1.90 ▼0.07 | 45.82 ▲4.88 |
Dashboard /wp-admin | 2,196 ▲19 | 5.65 ▲0.12 | 89.23 ▼5.31 | 40.69 ▲0.89 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.03 ▲0.04 | 33.95 ▼3.89 | 33.52 ▼2.01 |
Add New Post /wp-admin/post-new.php | 6,236 ▲4,707 | 18.83 ▼4.08 | 909.70 ▲267.22 | 54.51 ▲0.09 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.30 ▲0.09 | 95.44 ▼7.54 | 44.12 ▼0.17 |
Post to Mailchimp /wp-admin/options-general.php?page=ph_mailchimp_settings | 808 | 2.12 | 27.19 | 39.75 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/post-to-mailchimp/templates/post-plaintext-to-mailchimp.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function the_title() in wp-content/plugins/post-to-mailchimp/templates/post-to-mailchimp.php:7
- > PHP Notice
Trying to get property 'post_content' of non-object in wp-content/plugins/post-to-mailchimp/templates/post-plaintext-to-mailchimp.php on line 11
- > PHP Notice
Trying to get property 'post_title' of non-object in wp-content/plugins/post-to-mailchimp/templates/post-plaintext-to-mailchimp.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in post-to-mailchimp/assets to your readme.txt
post-to-mailchimp/plugin.php 85% from 13 tests
The principal PHP file in "Post to Mailchimp" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-to-mailchimp.php" instead of "plugin.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
Success! There were no dangerous files found in this plugin2,123 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 331 | 711 | 1,353 |
JavaScript | 2 | 59 | 39 | 281 |
Markdown | 3 | 108 | 0 | 251 |
PO File | 1 | 38 | 41 | 98 |
JSON | 3 | 3 | 0 | 78 |
Sass | 1 | 8 | 0 | 51 |
CSS | 1 | 9 | 1 | 10 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 8 | 8.16% |
▷ Public methods | 82 | 83.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 16.33% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.00% |
Constants | 20 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 20 | 100.00% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin