Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.08 | 42.49 ▲4.64 |
Dashboard /wp-admin | 3.14 ▲0.08 | 46.02 ▼0.64 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 46.57 ▼1.68 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 97.30 ▼566.61 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲93 | 15.81 ▼0.11 | 7.93 ▼0.99 | 49.25 ▲0.03 |
Dashboard /wp-admin | 2,970 ▲36 | 5.89 ▼0.06 | 145.61 ▼2.70 | 117.02 ▼5.39 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.00 | 68.95 ▲0.31 | 100.72 ▲6.82 |
Add New Post /wp-admin/post-new.php | 1,604 ▼79 | 18.86 ▲0.13 | 384.08 ▲6.47 | 116.29 ▲5.81 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▼0.01 | 171.33 ▼2.43 | 130.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
- > PHP Fatal error
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
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 114 | 130 | 620 |
JavaScript | 2 | 73 | 61 | 478 |
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 code | 0.36 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 82.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 17.65% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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