84% portugal-vasp-kios-woocommerce

Code Review | Portugal VASP Expresso Kios network for WooCommerce

WordPress plugin Portugal VASP Expresso Kios network for WooCommerce scored 84% from 54 tests.

About plugin

  • Plugin page: portugal-vasp-kio...
  • Plugin version: 3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 14, 2018
  • Latest release: Apr 17, 2023
  • Number of updates: 52
  • Update frequency: every 35.9 days
  • Top authors: webdados (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,554 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼6.66ms] Passed 4 tests

A check of server-side resources used by Portugal VASP Expresso Kios network for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1741.34 ▼7.94
Dashboard /wp-admin3.47 ▲0.1744.25 ▼8.29
Posts /wp-admin/edit.php3.59 ▲0.2350.21 ▲3.09
Add New Post /wp-admin/post-new.php6.05 ▲0.1782.56 ▼10.46
Media Library /wp-admin/upload.php3.39 ▲0.1734.49 ▲0.05

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Portugal VASP Expresso Kios network for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.431.89 ▼0.3046.29 ▼4.40
Dashboard /wp-admin2,206 ▲154.84 ▼1.05102.88 ▼12.2239.17 ▼8.52
Posts /wp-admin/edit.php2,089 ▲32.05 ▲0.0039.73 ▲3.2034.40 ▲1.07
Add New Post /wp-admin/post-new.php1,534 ▲1523.35 ▲0.24732.25 ▲51.7361.37 ▲0.20
Media Library /wp-admin/upload.php1,379 ▼94.18 ▼0.06100.28 ▼4.1644.13 ▼9.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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
Good news, no errors were detected

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/portugal-vasp-kios-woocommerce/portugal-vasp-kios-woocommerce.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: delivery, ecommerce, pickup, shipping, webdados...

portugal-vasp-kios-woocommerce/portugal-vasp-kios-woocommerce.php 92% from 13 tests

This is the main PHP file of "Portugal VASP Expresso Kios network for WooCommerce" version 3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 156 characters long)

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 detected978 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP24498874
CSS20053
JavaScript111551

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions36
▷ Named functions3597.22%
▷ Anonymous functions12.78%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/vaspkios_104_74.png1.90KB1.75KB▼ 8.26%