83% wp-utils

Code Review | Utils para WooCommerce y WordPress

WordPress plugin Utils para WooCommerce y WordPress scored83%from 54 tests.

About plugin

  • Plugin page: wp-utils
  • Plugin version: 2.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 7, 2016
  • Latest release: Dec 6, 2022
  • Number of updates: 21
  • Update frequency: every 120.2 days
  • Top authors: renzotejada (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,475 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.66ms] Passed 4 tests

Server-side resources used by Utils para WooCommerce y WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.36 ▼0.69
Dashboard /wp-admin3.37 ▲0.0355.25 ▼20.10
Posts /wp-admin/edit.php3.48 ▲0.1353.02 ▲3.26
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.04 ▼21.11
Media Library /wp-admin/upload.php3.29 ▲0.0640.64 ▲5.65
Settings /wp-admin/admin.php?page=utils_settings3.2435.35

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Utils para WooCommerce y WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.72 ▲0.371.87 ▲0.2146.06 ▲3.96
Dashboard /wp-admin2,214 ▲345.63 ▼0.0288.42 ▼9.4138.03 ▼3.46
Posts /wp-admin/edit.php2,119 ▲192.16 ▲0.1641.31 ▲4.0236.05 ▼0.07
Add New Post /wp-admin/post-new.php1,542 ▲1623.38 ▼0.07700.85 ▲38.6055.13 ▼5.51
Media Library /wp-admin/upload.php1,422 ▲284.24 ▲0.0698.40 ▼20.7342.21 ▼5.84
Settings /wp-admin/admin.php?page=utils_settings9851.9923.8431.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=utils_settings
    • > Notice in wp-content/plugins/wp-utils/rt_utils_admin.php+60
    Undefined index: tab

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: A description for screenshot #2 is required in wp-utils/assets to your readme.txt
You can take inspiration from this readme.txt

wp-utils/wp-utils.php 85% from 13 tests

"Utils para WooCommerce y WordPress" version 2.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.2" instead of "2.6")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
There were no executable files found in this plugin490 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34227390
PO File14143100

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin