84% shipping-vendesfacil-woocommerce

Code Review | Shipping VendesFacil Woocommerce

WordPress plugin Shipping VendesFacil Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: shipping-vendesfa...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-5.1
  • WordPress version: 6.3.1
  • First release: Apr 17, 2019
  • Latest release: Apr 29, 2019
  • Number of updates: 4
  • Update frequency: every 3.0 days
  • Top authors: saulmorales (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /707 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Shipping VendesFacil Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.08 ▲2.54
Dashboard /wp-admin3.31 ▲0.0144.25 ▼18.35
Posts /wp-admin/edit.php3.36 ▲0.0144.58 ▼0.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0178.59 ▼15.08
Media Library /wp-admin/upload.php3.23 ▲0.0135.09 ▲1.05

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 144 new files
Database: 2 new tables, 8 new options
New tables
wp_shipping_coordinadora_cities
wp_coordinadora_vendes_facil
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
shipping_vendesfacil_wc_svwc_redirect
shipping_vendesfacil_wc_svwc_version
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Shipping VendesFacil Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.27 ▼1.031.83 ▲0.2542.98 ▼2.06
Dashboard /wp-admin2,220 ▲294.82 ▼1.06101.51 ▲4.6137.74 ▼5.84
Posts /wp-admin/edit.php2,106 ▲142.03 ▲0.0135.23 ▼0.6631.04 ▼2.93
Add New Post /wp-admin/post-new.php1,523 ▼1017.70 ▼5.36677.40 ▼5.1955.03 ▼1.94
Media Library /wp-admin/upload.php1,399 ▲144.23 ▲0.01144.19 ▲31.8360.59 ▲12.87

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • shipping_vendesfacil_wc_svwc_redirect
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 take a closer look at the following
  • 49× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shipping-vendesfacil-woocommerce/lib/vendor/guzzlehttp/psr7/src/BufferStream.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/shipping-vendesfacil-woocommerce/lib/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/shipping-vendesfacil-woocommerce/lib/vendor/guzzlehttp/psr7/src/Uri.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/shipping-vendesfacil-woocommerce/lib/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/shipping-vendesfacil-woocommerce/lib/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shipping-vendesfacil-woocommerce/lib/vendor/guzzlehttp/psr7/src/PumpStream.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/shipping-vendesfacil-woocommerce/lib/vendor/psr/http-message/src/RequestInterface.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/shipping-vendesfacil-woocommerce/lib/vendor/guzzlehttp/promises/src/EachPromise.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/shipping-vendesfacil-woocommerce/lib/vendor/guzzlehttp/promises/src/RejectedPromise.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shipping-vendesfacil-woocommerce/lib/vendor/guzzlehttp/psr7/src/CachingStream.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
Please take inspiration from this readme.txt

shipping-vendesfacil-woocommerce/shipping-vendesfacil-woocommerce.php 92% from 13 tests

Analyzing the main PHP file in "Shipping VendesFacil Woocommerce" version 1.0.2
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "2.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin13,918 lines of code in 130 files:
LanguageFilesBlank linesComment linesLines of code
PHP1031,9754,9089,555
Markdown121,09403,638
JSON900632
XML34042
JavaScript10028
YAML14014
make1409

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity13.24
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces10
Interfaces14
Traits2
Classes72
▷ Abstract classes00.00%
▷ Concrete classes72100.00%
▷ Final classes811.11%
Methods715
▷ Static methods7911.05%
▷ Public methods59883.64%
▷ Protected methods70.98%
▷ Private methods11015.38%
Functions155
▷ Named functions6240.00%
▷ Anonymous functions9360.00%
Constants56
▷ Global constants11.79%
▷ Class constants5598.21%
▷ Public constants55100.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