83% masterbip-woocommerce-regiones-pesos-y-comunas-de-chile

Code Review | MasterBip Regiones Comunas y Pesos de Chile

WordPress plugin MasterBip Regiones Comunas y Pesos de Chile scored83%from 54 tests.

About plugin

  • Plugin page: masterbip-woocomm...
  • Plugin version: 1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0+-5.8
  • WordPress version: 6.3.1
  • First release: Jun 12, 2020
  • Latest release: May 27, 2022
  • Number of updates: 12
  • Update frequency: every 63.7 days
  • Top authors: masterbip (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.86ms] Passed 4 tests

An overview of server-side resources used by MasterBip Regiones Comunas y Pesos de Chile
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.80 ▼1.20
Dashboard /wp-admin3.31 ▲0.0144.84 ▼2.36
Posts /wp-admin/edit.php3.36 ▲0.0146.88 ▼4.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.19 ▼7.62
Media Library /wp-admin/upload.php3.24 ▲0.0131.52 ▼0.77

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

MasterBip Regiones Comunas y Pesos de Chile: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.151.61 ▲0.0440.05 ▼2.78
Dashboard /wp-admin2,209 ▲384.83 ▼1.03101.11 ▲0.5336.13 ▼14.39
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0639.30 ▼1.8834.27 ▼3.88
Add New Post /wp-admin/post-new.php1,542 ▲2318.53 ▼4.64601.13 ▼16.8855.50 ▼11.98
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0093.23 ▼5.0142.72 ▼2.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/masterbip-woocommerce-regiones-pesos-y-comunas-de-chile/masterbip-woocommerce-regiones-pesos-comunas-chile.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

masterbip-woocommerce-regiones-pesos-y-comunas-de-chile/masterbip-woocommerce-regiones-pesos-comunas-chile.php 77% from 13 tests

Analyzing the main PHP file in "MasterBip Regiones Comunas y Pesos de Chile" version 1.2
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("masterbip-woocommerce-regiones-pesos-y-comunas-de-chile.php" instead of "masterbip-woocommerce-regiones-pesos-comunas-chile.php")
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "4.0+")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin448 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12035427
Markdown110021

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.03
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin