84% woocommerce-mailchimp-plugin

Code Review | Woocommerce categories Mailchimp groups

WordPress plugin Woocommerce categories Mailchimp groups scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-mailc...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Nov 14, 2014
  • Latest release: May 14, 2019
  • Number of updates: 45
  • Update frequency: every 36.5 days
  • Top authors: dreamfox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,580 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.26ms] Passed 4 tests

Analyzing server-side resources used by Woocommerce categories Mailchimp groups
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.41 ▼5.96
Dashboard /wp-admin3.31 ▲0.0046.22 ▼1.95
Posts /wp-admin/edit.php3.36 ▲0.0043.37 ▼0.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.90 ▼9.04
Media Library /wp-admin/upload.php3.23 ▲0.0032.04 ▼4.08

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Woocommerce categories Mailchimp groups: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.69 ▲0.311.80 ▼0.1138.42 ▼6.55
Dashboard /wp-admin2,192 ▲125.59 ▼0.0189.93 ▲3.4038.72 ▼0.33
Posts /wp-admin/edit.php2,097 ▼01.96 ▼0.0134.44 ▼4.1931.47 ▼5.00
Add New Post /wp-admin/post-new.php1,535 ▲918.51 ▼4.70631.21 ▼42.4975.50 ▲20.18
Media Library /wp-admin/upload.php1,397 ▼04.26 ▼0.0293.63 ▼8.1142.44 ▼0.84

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woocommerce-mailchimp-plugin/woocommerce-mailchimp-free.php:18

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: free, mailchimp, woocommerce, groups, plugin...

woocommerce-mailchimp-plugin/woocommerce-mailchimp-free.php 92% from 13 tests

The primary PHP file in "Woocommerce categories Mailchimp groups" version 1.0.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-mailchimp-plugin.php" instead of "woocommerce-mailchimp-free.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,257 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP21822,0741,133
PO File33066117
CSS1007

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods111
▷ Static methods00.00%
▷ Public methods111100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/help.png0.30KB0.32KB0.00%