84% livees-checkout

Code Review | Livees Checkout

WordPress plugin Livees Checkout scored84%from 54 tests.

About plugin

  • Plugin page: livees-checkout
  • Plugin version: 6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 2, 2019
  • Latest release: Sep 25, 2023
  • Number of updates: 31
  • Update frequency: every 48.0 days
  • Top authors: reguets (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,415 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.81ms] Passed 4 tests

Analyzing server-side resources used by Livees Checkout
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.92 ▼3.17
Dashboard /wp-admin3.38 ▲0.0849.17 ▼1.85
Posts /wp-admin/edit.php3.43 ▲0.0847.67 ▼2.01
Add New Post /wp-admin/post-new.php5.96 ▲0.0882.47 ▼3.78
Media Library /wp-admin/upload.php3.30 ▲0.0833.69 ▼2.28

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Livees Checkout
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.45 ▼0.301.84 ▼0.4543.36 ▼0.01
Dashboard /wp-admin2,200 ▲125.85 ▲0.9597.47 ▼18.1538.71 ▼3.60
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0535.97 ▼0.1233.25 ▼1.93
Add New Post /wp-admin/post-new.php1,514 ▼017.72 ▼0.02687.26 ▲45.3560.87 ▲12.12
Media Library /wp-admin/upload.php1,388 ▲34.20 ▲0.0195.28 ▼8.0341.67 ▼3.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/livees-checkout/livees-checkout.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: cobros en lnea, gateway de pagos, pasarela de pagos, gateway, livees checkout...

livees-checkout/livees-checkout.php 92% from 13 tests

"Livees Checkout" version 6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "5.0")

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
Good job! No executable or dangerous file extensions detected462 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2559462

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/woocommerce_liveescheckout_admin.png15.80KB5.20KB▼ 67.11%
images/woo-livees-checkout4.png8.88KB3.93KB▼ 55.70%