Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼12.14ms] Passed 4 tests
Server-side resources used by Buen Fin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 42.64 ▼1.98 |
Dashboard /wp-admin | 3.38 ▲0.03 | 55.38 ▼13.66 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 48.00 ▼10.66 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 87.73 ▼22.25 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.70 ▼1.18 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-posts |
buen_fin_woo_12_msi |
buen_fin_woo_terms |
db_upgraded |
buen_fin_woo_6_msi |
widget_theysaidso_widget |
can_compress_scripts |
buen_fin_woo_title |
theysaidso_admin_options |
buen_fin_woo_3_msi |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Buen Fin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.35 ▼1.00 | 7.44 ▲5.78 | 42.51 ▲0.95 |
Dashboard /wp-admin | 2,199 ▲19 | 5.63 ▲0.03 | 86.73 ▼12.31 | 38.31 ▼5.57 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▼0.02 | 35.58 ▼2.68 | 33.82 ▼4.52 |
Add New Post /wp-admin/post-new.php | 1,532 ▼5 | 23.12 ▲5.03 | 639.37 ▼15.60 | 43.08 ▼26.84 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.18 ▼0.01 | 95.62 ▼7.27 | 41.63 ▼1.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/buen-fin/admin/partials/buen-fin-woo-admin-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/buen-fin/public/partials/buen-fin-woo-public-display.php:20
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2 in buen-fin/assets to your readme.txt
buen-fin/buen-fin-woo.php 77% from 13 tests
The main PHP script in "Buen Fin" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buen-fin.php" instead of "buen-fin-woo.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 242 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected458 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 145 | 570 | 372 |
Sass | 1 | 13 | 0 | 79 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 4 | 1 |
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.18 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/logo_buen_fin_banner_princ.png | 22.24KB | 9.04KB | ▼ 59.33% |