83% shipping-envia-colvanes-woo

Code Review | Shipping Envia Colvanes Woo

WordPress plugin Shipping Envia Colvanes Woo scored83%from 54 tests.

About plugin

  • Plugin page: shipping-envia-co...
  • Plugin version: 4.0.24
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jul 28, 2020
  • Latest release: Nov 14, 2023
  • Number of updates: 45
  • Update frequency: every 26.7 days
  • Top authors: saulmorales (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,963 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Shipping Envia Colvanes Woo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.48 ▼3.17
Dashboard /wp-admin3.31 ▼0.0343.82 ▼24.91
Posts /wp-admin/edit.php3.36 ▲0.0147.21 ▲1.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.91 ▼4.70
Media Library /wp-admin/upload.php3.23 ▲0.0033.25 ▲1.91

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 182 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Shipping Envia Colvanes Woo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲4914.31 ▼0.041.73 ▲0.0842.06 ▼1.39
Dashboard /wp-admin2,201 ▲205.61 ▼0.1092.23 ▼10.0542.38 ▼0.05
Posts /wp-admin/edit.php2,107 ▲71.97 ▲0.0039.25 ▲5.9137.94 ▲1.39
Add New Post /wp-admin/post-new.php1,532 ▲523.28 ▼0.13613.06 ▲4.2150.17 ▼7.16
Media Library /wp-admin/upload.php1,397 ▼04.20 ▼0.0497.80 ▲0.5740.70 ▼4.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 53× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/shipping-envia-colvanes-woo/lib/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shipping-envia-colvanes-woo/lib/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/shipping-envia-colvanes-woo/lib/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/shipping-envia-colvanes-woo/lib/vendor/guzzlehttp/psr7/src/Response.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shipping-envia-colvanes-woo/includes/cities.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shipping-envia-colvanes-woo/lib/vendor/guzzlehttp/psr7/src/InflateStream.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shipping-envia-colvanes-woo/lib/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shipping-envia-colvanes-woo/lib/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/shipping-envia-colvanes-woo/lib/vendor/guzzlehttp/promises/src/CancellationException.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/shipping-envia-colvanes-woo/lib/vendor/guzzlehttp/promises/src/TaskQueue.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

shipping-envia-colvanes-woo/shipping-envia-colvanes-woo.php 85% from 13 tests

The main file in "Shipping Envia Colvanes Woo" v. 4.0.24 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Git Repository: Please do not include Git repositories in your plugin
  • Requires at least: Required version must match the one declared in readme.txt ("6.0" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin15,964 lines of code in 164 files:
LanguageFilesBlank linesComment linesLines of code
PHP1282,3005,87011,301
Markdown141,18403,607
JSON1400831
Bourne Shell12111123
JavaScript21043
XML30043
make1409
YAML1007

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity13.41
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces11
Interfaces26
Traits3
Classes81
▷ Abstract classes00.00%
▷ Concrete classes81100.00%
▷ Final classes3441.98%
Methods795
▷ Static methods15819.87%
▷ Public methods67785.16%
▷ Protected methods70.88%
▷ Private methods11113.96%
Functions155
▷ Named functions5938.06%
▷ Anonymous functions9661.94%
Constants70
▷ Global constants11.43%
▷ Class constants6998.57%
▷ Public constants5884.06%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin