89% wbg-opcao-de-cancelar-na-listagem-de-pedidos-woo

Code Review | WBG Opção de Cancelar na listagem de pedidos Woo

WordPress plugin WBG Opção de Cancelar na listagem de pedidos Woo scored89%from 54 tests.

About plugin

  • Plugin page: wbg-opcao-de-canc...
  • Plugin version: 1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Oct 21, 2020
  • Latest release: Jul 12, 2021
  • Number of updates: 6
  • Update frequency: every 44.2 days
  • Top authors: rfbastos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /429 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.31ms] Passed 4 tests

Analyzing server-side resources used by WBG Opção de Cancelar na listagem de pedidos Woo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.78 ▼1.84
Dashboard /wp-admin3.31 ▲0.0149.37 ▼3.59
Posts /wp-admin/edit.php3.36 ▲0.0046.14 ▼7.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.45 ▼4.77
Media Library /wp-admin/upload.php3.23 ▲0.0039.90 ▲2.94

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WBG Opção de Cancelar na listagem de pedidos Woo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.71 ▲0.191.76 ▲0.1044.31 ▲0.07
Dashboard /wp-admin2,195 ▲155.54 ▼0.1187.07 ▼6.9742.40 ▲3.24
Posts /wp-admin/edit.php2,103 ▼02.02 ▲0.0334.59 ▼4.2134.75 ▼4.52
Add New Post /wp-admin/post-new.php1,526 ▼222.94 ▼0.06671.51 ▲24.2457.73 ▲10.44
Media Library /wp-admin/upload.php1,400 ▲64.16 ▲0.0099.36 ▼3.9745.38 ▲2.17

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
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

wbg-opcao-de-cancelar-na-listagem-de-pedidos-woo/wbg-canceled-bulk-option.php 77% from 13 tests

The primary PHP file in "WBG Opção de Cancelar na listagem de pedidos Woo" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wbg-opcao-de-cancelar-na-listagem-de-pedidos-woo.php" instead of "wbg-canceled-bulk-option.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin38 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1301538

PHP code Passed 2 tests

Analyzing 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.60
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
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
PNG images were not found in this plugin