83% woo-customers-robly

Code Review | WooCommerce Customers to Robly

WordPress plugin WooCommerce Customers to Robly scored83%from 54 tests.

About plugin

  • Plugin page: woo-customers-robly
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Jan 7, 2016
  • Latest release: Aug 28, 2018
  • Number of updates: 28
  • Update frequency: every 47.0 days
  • Top authors: macbookandrew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,715 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.80ms] Passed 4 tests

A check of server-side resources used by WooCommerce Customers to Robly
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.09 ▼5.26
Dashboard /wp-admin3.36 ▲0.0651.04 ▼3.78
Posts /wp-admin/edit.php3.41 ▲0.0652.38 ▲1.07
Add New Post /wp-admin/post-new.php5.96 ▲0.0894.92 ▼19.23
Media Library /wp-admin/upload.php3.29 ▲0.0637.31 ▲3.91
WooCommerce to Robly /wp-admin/options-general.php?page=woocommerce-customers-robly3.2334.61

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please fix the following
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/woo-customers-robly/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Customers to Robly
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6714.86 ▲0.611.73 ▼0.1843.31 ▼1.06
Dashboard /wp-admin2,234 ▲285.13 ▲0.21106.82 ▲1.7135.87 ▼10.80
Posts /wp-admin/edit.php2,113 ▲132.44 ▲0.4442.79 ▼2.8835.28 ▼2.68
Add New Post /wp-admin/post-new.php1,539 ▼123.37 ▲5.11704.64 ▲87.7264.68 ▲12.69
Media Library /wp-admin/upload.php1,410 ▲74.55 ▲0.32102.59 ▲1.9647.93 ▼0.71
WooCommerce to Robly /wp-admin/options-general.php?page=woocommerce-customers-robly8601.8924.7629.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=woocommerce-customers-robly
    • > Notice in wp-content/plugins/woo-customers-robly/woocommerce-customers-robly.php+174
    Trying to access array offset on value of type bool

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce, email, customer, robly, automation

woo-customers-robly/woocommerce-customers-robly.php 77% from 13 tests

This is the main PHP file of "WooCommerce Customers to Robly" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-customers-robly.php" instead of "woocommerce-customers-robly.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that 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
No dangerous file extensions were detected358 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP149131270
JavaScript18147
XML1111828
JSON10013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin