Benchmarks
Plugin footprint Passed 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 gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼138.01ms] Passed 4 tests
Server-side resources used by Preenche endereço CEP para Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.68 ▼0.05 | 23.32 ▼4.11 |
Dashboard /wp-admin | 3.06 ▲0.01 | 49.76 ▲12.30 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 45.46 ▲1.75 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 91.71 ▼545.25 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 27.82 ▼4.44 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Preenche endereço CEP para Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,254 ▼342 | 15.69 ▲0.04 | 0.42 ▼9.11 | 11.24 ▼40.63 |
Dashboard /wp-admin | 2,973 ▲39 | 6.13 ▲0.03 | 154.68 ▲3.75 | 114.24 ▼2.84 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.70 ▲0.01 | 68.86 ▲1.45 | 97.30 ▲3.42 |
Add New Post /wp-admin/post-new.php | 1,508 ▼122 | 18.88 ▼0.04 | 377.84 ▼25.16 | 113.86 ▼11.57 |
Media Library /wp-admin/upload.php | 1,810 ▲62 | 5.01 ▼0.01 | 152.36 ▼6.98 | 120.01 ▼12.91 |
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
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/preenche-endereco-cep/wc-preenche-endereco-cep.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: estado, autopreenchimento, bairro, cidade, woocommerce...
preenche-endereco-cep/wc-preenche-endereco-cep.php 92% from 13 tests
Analyzing the main PHP file in "Preenche endereço CEP para Woocommerce" version 1.5.1
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("preenche-endereco-cep.php" instead of "wc-preenche-endereco-cep.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin96 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 4 | 0 | 76 |
PHP | 1 | 11 | 24 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected