83% easylox-for-woocommerce

Code Review | Easylox for WooCommerce

WordPress plugin Easylox for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: easylox-for-wooco...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.0
  • WordPress version: 6.3.1
  • First release: Apr 24, 2021
  • Latest release: Oct 16, 2023
  • Number of updates: 17
  • Update frequency: every 53.3 days
  • Top authors: easylox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /454 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Easylox for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.95 ▼4.33
Dashboard /wp-admin3.31 ▼0.0445.30 ▼13.65
Posts /wp-admin/edit.php3.36 ▲0.0044.32 ▼5.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.40 ▼6.20
Media Library /wp-admin/upload.php3.23 ▲0.0033.31 ▲1.31

Server storage [IO: ▲0.54MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Easylox for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.241.84 ▲0.0344.75 ▲3.15
Dashboard /wp-admin2,195 ▲215.54 ▲0.0182.56 ▼3.6837.59 ▼7.81
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0633.68 ▼0.9533.34 ▼3.63
Add New Post /wp-admin/post-new.php1,529 ▲323.24 ▲0.22619.05 ▼71.8750.41 ▼0.72
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.0396.66 ▲1.9240.99 ▼3.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/easylox-for-woocommerce/easylox.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easylox-for-woocommerce/easylox_response.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easylox-for-woocommerce/easylox_options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easylox-for-woocommerce/easylox_auto.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easylox-for-woocommerce/easylox_manual.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can take inspiration from this readme.txt

easylox-for-woocommerce/easylox.php 85% from 13 tests

"Easylox for WooCommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 403 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easylox-for-woocommerce.php" instead of "easylox.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected682 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP78933460
PO File24244166
JavaScript13156

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.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 images were found in this plugin