77% buen-fin

Code Review | Buen Fin

WordPress plugin Buen Fin scored77%from 54 tests.

About plugin

  • Plugin page: buen-fin
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1
  • WordPress version: 6.3.1
  • First release: Jul 20, 2022
  • Latest release: Nov 10, 2022
  • Number of updates: 11
  • Update frequency: every 10.3 days
  • Top authors: racmanuel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,055 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0842.64 ▼1.98
Dashboard /wp-admin3.38 ▲0.0355.38 ▼13.66
Posts /wp-admin/edit.php3.49 ▲0.1448.00 ▼10.66
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.73 ▼22.25
Media Library /wp-admin/upload.php3.30 ▲0.0737.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.35 ▼1.007.44 ▲5.7842.51 ▲0.95
Dashboard /wp-admin2,199 ▲195.63 ▲0.0386.73 ▼12.3138.31 ▼5.57
Posts /wp-admin/edit.php2,101 ▲11.99 ▼0.0235.58 ▼2.6833.82 ▼4.52
Add New Post /wp-admin/post-new.php1,532 ▼523.12 ▲5.03639.37 ▼15.6043.08 ▼26.84
Media Library /wp-admin/upload.php1,401 ▲14.18 ▼0.0195.62 ▼7.2741.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP12145570372
Sass113079
JavaScript24546
CSS2041

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 code0.18
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
public/img/logo_buen_fin_banner_princ.png22.24KB9.04KB▼ 59.33%