78% mailchimp-subscriber-chiclet

Code Review | MailChimp Subscriber Chiclet

WordPress plugin MailChimp Subscriber Chiclet scored 78% from 54 tests.

About plugin

  • Plugin page: mailchimp-subscri...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Apr 13, 2015
  • Latest release: Dec 13, 2016
  • Number of updates: 19
  • Update frequency: every 32.2 days
  • Top authors: gavinr (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 2,987 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.26ms] Passed 4 tests

Analyzing server-side resources used by MailChimp Subscriber Chiclet
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.89 ▼2.60
Dashboard /wp-admin3.32 ▲0.0245.25 ▼4.80
Posts /wp-admin/edit.php3.37 ▲0.0149.68 ▲3.05
Add New Post /wp-admin/post-new.php5.92 ▲0.03110.50 ▲15.57
Media Library /wp-admin/upload.php3.24 ▲0.0136.13 ▼4.70

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for MailChimp Subscriber Chiclet
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5713.23 ▼1.361.61 ▼0.4944.32 ▼2.84
Dashboard /wp-admin2,216 ▲284.83 ▼1.04110.31 ▼3.5943.45 ▼1.54
Posts /wp-admin/edit.php2,099 ▲102.04 ▼0.0139.39 ▲5.8940.83 ▲3.31
Add New Post /wp-admin/post-new.php1,532 ▼518.38 ▼4.82604.65 ▼95.4253.91 ▼3.37
Media Library /wp-admin/upload.php1,401 ▲134.31 ▲0.0799.99 ▼6.0345.17 ▼1.27
MailChimp Subscriber Chiclet /wp-admin/mailchimp-subscriber-chiclet-options.php260.440.1312.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailchimp-subscriber-chiclet/mailchimp-subscriber-chiclet.php:64

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/mailchimp-subscriber-chiclet-options.php
    • > Network (severe)
    wp-admin/mailchimp-subscriber-chiclet-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: mc, mailchimp, chiclet, subscribers

mailchimp-subscriber-chiclet/mailchimp-subscriber-chiclet.php 92% from 13 tests

The main PHP file in "MailChimp Subscriber Chiclet" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin357 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP268128317
JavaScript10026
CSS20014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.50
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/mailchimp_blue.png4.73KB2.97KB▼ 37.13%
images/mailchimp_red.png4.72KB2.98KB▼ 37.01%
images/mailchimp_green.png4.72KB2.97KB▼ 37.14%
images/mailchimp_black.png4.73KB2.98KB▼ 36.96%