Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.47MB] [CPU: ▼0.95ms] Passed 4 tests
An overview of server-side resources used by Ubigeo de Perú para Woocommerce y WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 45.33 ▲3.30 |
Dashboard /wp-admin | 3.81 ▲0.51 | 49.50 ▼3.48 |
Posts /wp-admin/edit.php | 3.86 ▲0.51 | 52.12 ▲5.93 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.45 | 85.98 ▼7.34 |
Media Library /wp-admin/upload.php | 3.67 ▲0.45 | 38.64 ▲3.70 |
Server storage [IO: ▲1.30MB] [DB: ▲0.05MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: 3 new tables, 13 new options
New tables |
---|
wp_ubigeo_provincia |
wp_ubigeo_distrito |
wp_ubigeo_departamento |
New WordPress options |
---|
ubigeo_thanks_checkbox |
widget_recent-comments |
ubigeo_priority_method_free_checkbox |
ubigeo_checkout_checkbox |
db_upgraded |
ubigeo_emails_checkbox |
widget_recent-posts |
theysaidso_admin_options |
ubigeo_title_checkbox |
ubigeo_format_checkbox |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Ubigeo de Perú para Woocommerce y WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.58 ▼0.74 | 1.71 ▼0.40 | 42.88 ▼3.33 |
Dashboard /wp-admin | 2,206 ▲21 | 4.86 ▼1.01 | 112.24 ▲4.49 | 39.42 ▼1.34 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.00 ▲0.03 | 39.10 ▲0.84 | 35.93 ▼0.97 |
Add New Post /wp-admin/post-new.php | 1,542 ▲8 | 18.27 ▼5.02 | 623.30 ▼65.56 | 53.78 ▲4.90 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.03 | 102.43 ▼12.26 | 41.78 ▼8.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables were found after uninstall: 3 tables
- wp_ubigeo_distrito
- wp_ubigeo_provincia
- wp_ubigeo_departamento
- This plugin does not fully uninstall, leaving 13 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- ubigeo_title_checkbox
- db_upgraded
- can_compress_scripts
- ubigeo_emails_checkbox
- ubigeo_format_checkbox
- ubigeo_checkout_checkbox
- rt_ubigeo_peru_db_version
- ubigeo_priority_method_free_checkbox
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ubigeo-peru/rt_ubigeo_lib.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ubigeo-peru/rt_ubigeo_address.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ubigeo-peru/rt_ubigeo_checkout.php:2
- > 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 issues were found
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
6 plugin tags: ubigeo per, provincia, peru, departamentos, distrito...
ubigeo-peru/ubigeo-peru.php 92% from 13 tests
This is the main PHP file of "Ubigeo de Perú para Woocommerce y WordPress" version 3.7.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.2" instead of "5.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin4,673 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 312 | 55 | 3,911 |
PO File | 2 | 162 | 232 | 438 |
CSS | 2 | 18 | 5 | 163 |
JavaScript | 3 | 16 | 1 | 161 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 113 | |
▷ Named functions | 113 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin