10% display-mailchimp-shortcode

Code Review | Display MailChimp

WordPress plugin Display MailChimp scored 10% from 54 tests.

About plugin

  • Plugin page: display-mailchimp...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2019
  • Latest release: Dec 16, 2019
  • Number of updates: 9
  • Update frequency: every 30.2 days
  • Top authors: msicknick (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 523 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/display-mailchimp-shortcode/display-mailchimp-shortcode.php+150
    The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence

Server metrics [RAM: ▼1.87MB] [CPU: ▼51.76ms] Passed 4 tests

An overview of server-side resources used by Display MailChimp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.344.90 ▼34.58
Dashboard /wp-admin2.14 ▼1.165.72 ▼42.93
Posts /wp-admin/edit.php2.14 ▼1.227.26 ▼39.95
Add New Post /wp-admin/post-new.php2.14 ▼3.755.74 ▼89.58
Media Library /wp-admin/upload.php2.14 ▼1.095.48 ▼30.25

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Display MailChimp
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.111.83 ▲0.0945.48 ▲4.87
Dashboard /wp-admin2,200 ▲125.79 ▲0.88103.90 ▼2.2137.52 ▼6.42
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0536.41 ▼1.2538.20 ▲2.69
Add New Post /wp-admin/post-new.php1,514 ▼1917.75 ▼5.41643.36 ▼45.3163.77 ▲6.21
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0099.80 ▼14.7541.31 ▼6.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/display-mailchimp-shortcode/display-mailchimp-shortcode.php+150
    The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: mailchimp, shortcode

display-mailchimp-shortcode/display-mailchimp-shortcode.php Passed 13 tests

The primary PHP file in "Display MailChimp" version 1.2.0 is used by WordPress to initiate all plugin functionality
40 characters long description:
Shortcode to display Mailchimp campaigns

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin190 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP166115190

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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 files were detected