Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.55MB] [CPU: ▲4.40ms] Passed 4 tests
An overview of server-side resources used by Sendingbay módulo E-commerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.96 ▲1.50 | 51.95 ▲9.07 |
Dashboard /wp-admin | 4.98 ▲1.64 | 67.91 ▼4.14 |
Posts /wp-admin/edit.php | 4.98 ▲1.63 | 61.89 ▲9.84 |
Add New Post /wp-admin/post-new.php | 7.32 ▲1.44 | 111.18 ▲2.83 |
Media Library /wp-admin/upload.php | 4.98 ▲1.75 | 50.51 ▲12.12 |
Server storage [IO: ▲2.78MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 44 new files
Database: 5 new tables, 6 new options
New tables |
---|
wp_fact_return |
wp_fact_sender |
wp_fact_config |
wp_fact_data |
wp_fact_cron |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Sendingbay módulo E-commerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲30 | 14.23 ▼0.12 | 1.69 ▼0.33 | 45.04 ▼0.15 |
Dashboard /wp-admin | 2,210 ▲33 | 5.69 ▲0.07 | 87.85 ▼11.89 | 38.36 ▼4.24 |
Posts /wp-admin/edit.php | 2,180 ▲83 | 2.90 ▲0.89 | 55.15 ▲18.19 | 32.85 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.01 ▼0.06 | 664.84 ▼20.64 | 55.97 ▲1.14 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.21 ▼0.01 | 100.34 ▼4.33 | 41.04 ▼5.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/ubilop/includes/class-fact-cron.php+37
Trying to get property 'hora' of non-object
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ubilop/ubilop-plugin-wp.php
- > /wp-content/plugins/ubilop/public/partials/fact-public-display.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ubilop/admin/partials/fact-return-display.php:28
- > PHP Warning
Use of undefined constant UBILOP_PLUGIN_DIR_URL - assumed 'UBILOP_PLUGIN_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ubilop/admin/partials/fact-return-display.php on line 16
- > PHP Warning
Use of undefined constant UBILOP_TABLE_DATA - assumed 'UBILOP_TABLE_DATA' (this will throw an Error in a future version of PHP) in wp-content/plugins/ubilop/admin/partials/fact-order-display.php on line 29
- > PHP Warning
Use of undefined constant UBILOP_WS_CONFIG - assumed 'UBILOP_WS_CONFIG' (this will throw an Error in a future version of PHP) in wp-content/plugins/ubilop/admin/partials/fact-return-display.php on line 27
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ubilop/admin/partials/fact-config-display.php:20
- > PHP Warning
Use of undefined constant UBILOP_TABLE_CONFIG - assumed 'UBILOP_TABLE_CONFIG' (this will throw an Error in a future version of PHP) in wp-content/plugins/ubilop/admin/partials/fact-config-display.php on line 19
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ubilop/admin/partials/fact-order-display.php:30
- > PHP Warning
Use of undefined constant UBILOP_PLUGIN_DIR_URL - assumed 'UBILOP_PLUGIN_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ubilop/admin/partials/fact-order-display.php on line 16
- > PHP Warning
Use of undefined constant UBILOP_TABLE_RETURN - assumed 'UBILOP_TABLE_RETURN' (this will throw an Error in a future version of PHP) in wp-content/plugins/ubilop/admin/partials/fact-return-display.php on line 27
- > PHP Warning
Use of undefined constant UBILOP_WS_CONFIG - assumed 'UBILOP_WS_CONFIG' (this will throw an Error in a future version of PHP) in wp-content/plugins/ubilop/admin/partials/fact-order-display.php on line 29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: correos, fact, sendingbay, mensajera, ubilop...
ubilop/ubilop-plugin-wp.php 85% from 13 tests
The principal PHP file in "Sendingbay módulo E-commerce" v. 3.0.8 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ubilop.php" instead of "ubilop-plugin-wp.php")
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
No dangerous file extensions were detected23,867 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 1,369 | 3,485 | 8,333 |
JavaScript | 5 | 2,073 | 2,258 | 7,936 |
CSS | 4 | 1,453 | 444 | 7,598 |
PHP code Passed 2 tests
A brief analysis 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.45 |
Average class complexity | 59.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 390.00 |
Average method complexity | 8.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 214 | |
▷ Static methods | 2 | 0.93% |
▷ Public methods | 206 | 96.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 3.74% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.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
2 PNG files occupy 0.47MB with 0.28MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/lg-ubi.png | 290.33KB | 119.56KB | ▼ 58.82% |
admin/img/sb-black.png | 193.51KB | 76.38KB | ▼ 60.53% |