78% cart66-to-mailchimp

Code Review | Cart66 to Mailchimp

WordPress plugin Cart66 to Mailchimp scored78%from 54 tests.

About plugin

  • Plugin page: cart66-to-mailchimp
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.2-3.5
  • WordPress version: 6.3.1
  • First release: Feb 25, 2013
  • Latest release: Aug 10, 2013
  • Number of updates: 14
  • Update frequency: every 11.9 days
  • Top authors: johndaskovsky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,403 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Cart66 to Mailchimp
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.49 ▼2.06
Dashboard /wp-admin3.32 ▲0.0243.86 ▼4.48
Posts /wp-admin/edit.php3.37 ▲0.0253.30 ▲7.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.67 ▼4.11
Media Library /wp-admin/upload.php3.24 ▲0.0133.96 ▲2.05
Cart66 to Mailchimp /wp-admin/options-general.php?page=cart66-to-mailchimp-plugin3.1830.51

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Cart66 to Mailchimp
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.24 ▼1.191.70 ▼0.5738.49 ▼15.09
Dashboard /wp-admin2,210 ▲224.87 ▼0.00107.70 ▼3.5640.71 ▼6.74
Posts /wp-admin/edit.php2,090 ▲12.06 ▲0.0839.43 ▲2.6634.88 ▼1.53
Add New Post /wp-admin/post-new.php1,545 ▲1118.42 ▼4.58621.39 ▼35.0453.65 ▼6.59
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0297.15 ▼3.4243.60 ▼0.77
Cart66 to Mailchimp /wp-admin/options-general.php?page=cart66-to-mailchimp-plugin8072.0226.5129.38

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=cart66-to-mailchimp-plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=cart66-to-mailchimp-plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cart66-to-mailchimp/cart66_to_mailchimp.php on line 38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cart66-to-mailchimp/cart66_to_mailchimp.php:56

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Cart66 to Mailchimp Settings Page), #2 (Cart66 to Mailchimp Options Page)
The official readme.txt might help

cart66-to-mailchimp/cart66_to_mailchimp.php 85% from 13 tests

"Cart66 to Mailchimp" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("cart66-to-mailchimp.php" instead of "cart66_to_mailchimp.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)

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
Everything looks great! No dangerous files found in this plugin784 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21531,652784

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods100
▷ Static methods00.00%
▷ Public methods100100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin