Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.31ms] Passed 4 tests
Server-side resources used by Unienvios
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 36.08 ▼0.20 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.24 ▲1.47 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.98 ▲2.34 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 88.28 ▼0.80 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 32.40 ▼1.72 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Unienvios
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.24 ▼0.27 | 1.81 ▲0.07 | 38.07 ▼7.02 |
Dashboard /wp-admin | 2,195 ▲17 | 5.55 ▼0.13 | 90.95 ▼13.56 | 37.11 ▼7.47 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.02 ▲0.07 | 40.06 ▲4.07 | 35.90 ▲2.41 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.23 ▲0.33 | 588.48 ▼71.18 | 50.30 ▼6.10 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.25 ▼0.03 | 94.64 ▼20.17 | 42.03 ▼7.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/unienvios/form-page-product.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/unienvios/ClassUnienvios.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unienvios/options.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/unienvios/index.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Página do Produto com o campo de calcular frete da unienvios.), #2 (Página de Configuração do plug-in.)
unienvios/index.php 92% from 13 tests
Analyzing the main PHP file in "Unienvios" version 1.4.3
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("unienvios.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,048 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 136 | 137 | 508 |
JavaScript | 2 | 72 | 62 | 489 |
CSS | 1 | 9 | 0 | 51 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshots/1.png | 46.79KB | 20.14KB | ▼ 56.96% |
assets/screenshots/2.png | 25.33KB | 13.08KB | ▼ 48.34% |
assets/icon/favicon.7d40b497-svg-20px.png | 0.86KB | 1.45KB | 0.00% |