78% smartservices-chimp-mail-list-by-woo-product

Code Review | Smartservices, Mailchimp List By Woocommerce Product

WordPress plugin Smartservices, Mailchimp List By Woocommerce Product scored78%from 54 tests.

About plugin

  • Plugin page: smartservices-chi...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 9, 2016
  • Latest release: Dec 19, 2016
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: hjfraindar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /955 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.34ms] Passed 4 tests

Analyzing server-side resources used by Smartservices, Mailchimp List By Woocommerce Product
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.93 ▼5.50
Dashboard /wp-admin3.34 ▲0.0348.57 ▼2.38
Posts /wp-admin/edit.php3.39 ▲0.0348.23 ▼2.48
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.33 ▼2.98
Media Library /wp-admin/upload.php3.26 ▲0.0339.70 ▲5.50
Mailchimp List By Woocommerce Product /wp-admin/tools.php?page=mlbp3.2031.85

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Smartservices, Mailchimp List By Woocommerce Product
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▲0.001.78 ▼0.0242.18 ▼1.89
Dashboard /wp-admin2,202 ▲285.62 ▼0.0588.12 ▼8.5644.67 ▲2.12
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0139.68 ▲4.1137.56 ▲0.34
Add New Post /wp-admin/post-new.php1,538 ▲1218.21 ▼5.01598.73 ▼77.0072.55 ▲14.78
Media Library /wp-admin/upload.php1,404 ▲44.17 ▼0.1296.13 ▼8.2543.42 ▲2.62
Mailchimp List By Woocommerce Product /wp-admin/tools.php?page=mlbp7822.0025.6926.37

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=mlbp
    • > Notice in wp-content/plugins/smartservices-chimp-mail-list-by-woo-product/smartservices-chimp-list-by-woo-produc.php+29
    Undefined index: _wpnonce
    • > GET request to /wp-admin/tools.php?page=mlbp
    • > Notice in wp-content/plugins/smartservices-chimp-mail-list-by-woo-product/smartservices-chimp-list-by-woo-produc.php+33
    Undefined index: mlbp_apikey

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smartservices-chimp-mail-list-by-woo-product/smartservices-chimp-list-by-woo-produc.php:10

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

smartservices-chimp-mail-list-by-woo-product/smartservices-chimp-list-by-woo-produc.php 92% from 13 tests

The entry point to "Smartservices, Mailchimp List By Woocommerce Product" version 1.1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("smartservices-chimp-mail-list-by-woo-product.php" instead of "smartservices-chimp-list-by-woo-produc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected112 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11411112

PHP code Passed 2 tests

An short overview of 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 complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected