94% balcao-balcao

Code Review | Balcão Balcão

WordPress plugin Balcão Balcão scored 94% from 54 tests.

About plugin

  • Plugin page: balcao-balcao
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.0-5.6
  • WordPress version: 5.8.1
  • First release: Oct 2, 2019
  • Latest release: Jan 26, 2021
  • Number of updates: 14
  • Update frequency: every 34.9 days
  • Top authors: balcaobalcao (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 299 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼142.60ms] Passed 4 tests

An overview of server-side resources used by Balcão Balcão
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.0842.49 ▲4.64
Dashboard /wp-admin3.14 ▲0.0846.02 ▼0.64
Posts /wp-admin/edit.php3.19 ▲0.0846.57 ▼1.68
Add New Post /wp-admin/post-new.php5.50 ▲0.0697.30 ▼566.61
Media Library /wp-admin/upload.php3.08 ▲0.0835.07 ▼1.48

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Balcão Balcão
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲9315.81 ▼0.117.93 ▼0.9949.25 ▲0.03
Dashboard /wp-admin2,970 ▲365.89 ▼0.06145.61 ▼2.70117.02 ▼5.39
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0068.95 ▲0.31100.72 ▲6.82
Add New Post /wp-admin/post-new.php1,604 ▼7918.86 ▲0.13384.08 ▲6.47116.29 ▲5.81
Media Library /wp-admin/upload.php1,810 ▲35.02 ▼0.01171.33 ▼2.43130.22 ▼4.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/balcao-balcao/balcaobalcao-shipping.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: frete, woocommerce, brasil

balcao-balcao/balcaobalcao-shipping.php 92% from 13 tests

The primary PHP file in "Balcão Balcão" version 1.0.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("balcao-balcao.php" instead of "balcaobalcao-shipping.php")

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
Everything looks great! No dangerous files found in this plugin1,098 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity20.67
▷ Minimum class complexity9.00
▷ Maximum class complexity36.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1482.35%
▷ Protected methods00.00%
▷ Private methods317.65%
▷ Named functions583.33%
▷ Anonymous functions116.67%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin