83% shipping-deprisa-woo

Code Review | Shipping Deprisa Woo

WordPress plugin Shipping Deprisa Woo scored83%from 54 tests.

About plugin

  • Plugin page: shipping-deprisa-woo
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.1.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Oct 31, 2020
  • Latest release: Sep 16, 2021
  • Number of updates: 8
  • Update frequency: every 43.6 days
  • Top authors: saulmorales (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /595 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.02ms] Passed 4 tests

Server-side resources used by Shipping Deprisa Woo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.39 ▼9.97
Dashboard /wp-admin3.33 ▲0.0251.73 ▲2.66
Posts /wp-admin/edit.php3.38 ▲0.0253.10 ▲3.26
Add New Post /wp-admin/post-new.php5.91 ▲0.02112.71 ▲8.33
Media Library /wp-admin/upload.php3.25 ▲0.0237.95 ▼4.01

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 150 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Shipping Deprisa Woo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7913.17 ▼1.211.65 ▼0.2141.54 ▼0.43
Dashboard /wp-admin2,220 ▲325.88 ▲0.93103.07 ▼6.2640.36 ▲0.99
Posts /wp-admin/edit.php2,103 ▲142.02 ▼0.0448.61 ▲8.1935.69 ▼0.72
Add New Post /wp-admin/post-new.php1,542 ▲923.08 ▼0.10670.17 ▲0.4156.53 ▲1.83
Media Library /wp-admin/upload.php1,402 ▲174.22 ▲0.04109.25 ▲3.2052.98 ▲6.57

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

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

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 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-deprisa-woo/lib/vendor/guzzlehttp/psr7/src/PumpStream.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/shipping-deprisa-woo/lib/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/shipping-deprisa-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-deprisa-woo/lib/vendor/guzzlehttp/psr7/src/Stream.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/shipping-deprisa-woo/lib/vendor/guzzlehttp/promises/src/EachPromise.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shipping-deprisa-woo/lib/vendor/guzzlehttp/psr7/src/LimitStream.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/shipping-deprisa-woo/lib/vendor/guzzlehttp/promises/src/TaskQueue.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shipping-deprisa-woo/lib/vendor/guzzlehttp/psr7/src/InflateStream.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/shipping-deprisa-woo/lib/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/shipping-deprisa-woo/lib/vendor/guzzlehttp/promises/src/Coroutine.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
  • Screenshots: A description for screenshot #0 is required in shipping-deprisa-woo/assets to your readme.txt
Please take inspiration from this readme.txt

shipping-deprisa-woo/shipping-deprisa-woo.php 85% from 13 tests

"Shipping Deprisa Woo" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.4" instead of "4.0")
  • Git Repository: A Git repository was detected inside this plugin

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
Success! There were no dangerous files found in this plugin14,264 lines of code in 139 files:
LanguageFilesBlank linesComment linesLines of code
PHP1052,0495,2319,592
Markdown171,21703,769
JSON1000774
JavaScript32085
XML20034
make1409
YAML1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity14.14
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces11
Interfaces18
Traits3
Classes69
▷ Abstract classes00.00%
▷ Concrete classes69100.00%
▷ Final classes1014.49%
Methods741
▷ Static methods9412.69%
▷ Public methods61382.73%
▷ Protected methods152.02%
▷ Private methods11315.25%
Functions151
▷ Named functions5939.07%
▷ Anonymous functions9260.93%
Constants59
▷ Global constants11.69%
▷ Class constants5898.31%
▷ Public constants58100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected