83% woo-recargo-de-equivalencia

Code Review | WooCommerce Recargo de Equivalencia

WordPress plugin WooCommerce Recargo de Equivalencia scored83%from 54 tests.

About plugin

  • Plugin page: woo-recargo-de-eq...
  • Plugin version: 1.6.24
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7.4
  • WordPress version: 6.3.1
  • First release: May 30, 2017
  • Latest release: Jun 23, 2017
  • Number of updates: 7
  • Update frequency: every 3.6 days
  • Top authors: josesan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /2,255 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.02MB] [CPU: ▼10.42ms] Passed 4 tests

A check of server-side resources used by WooCommerce Recargo de Equivalencia
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.09 ▼11.30
Dashboard /wp-admin3.34 ▼0.0147.63 ▼17.70
Posts /wp-admin/edit.php3.39 ▲0.0347.28 ▼0.65
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.47 ▼12.03
Media Library /wp-admin/upload.php3.26 ▲0.0335.18 ▲0.17

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Recargo de Equivalencia
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.64 ▼1.141.65 ▼0.1141.53 ▼0.22
Dashboard /wp-admin2,224 ▲185.86 ▼0.0596.86 ▼9.3445.69 ▲6.49
Posts /wp-admin/edit.php2,103 ▲61.97 ▼0.0236.81 ▼0.1037.34 ▲4.18
Add New Post /wp-admin/post-new.php1,545 ▲523.49 ▲5.11626.94 ▼41.3651.98 ▼4.50
Media Library /wp-admin/upload.php1,400 ▲34.26 ▼0.0397.01 ▼7.1343.16 ▼3.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/woo-recargo-de-equivalencia/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: tax, recargo de equivalencia, impuesto, woocommerce

woo-recargo-de-equivalencia/woocommerce-recargo-de-equivalencia.php 77% from 13 tests

The main PHP script in "WooCommerce Recargo de Equivalencia" version 1.6.24 is automatically included on every request by WordPress
You should first fix the following items:
  • 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 folder was not found ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-recargo-de-equivalencia.php" instead of "woocommerce-recargo-de-equivalencia.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected249 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27561249

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png30.39KB13.59KB▼ 55.28%
screenshot-1.png41.33KB15.26KB▼ 63.08%
screenshot-2.png27.13KB12.66KB▼ 53.35%
screenshot-4.png34.95KB13.31KB▼ 61.93%