84% masterbip-regiones-de-chile

Code Review | MasterBip Regiones de Chile

WordPress plugin MasterBip Regiones de Chile scored84%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

This is a short check of server-side resources used by MasterBip Regiones de Chile
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.25 ▼4.62
Dashboard /wp-admin3.31 ▲0.0149.48 ▼5.32
Posts /wp-admin/edit.php3.37 ▲0.0149.38 ▼1.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.93 ▼0.76
Media Library /wp-admin/upload.php3.24 ▲0.0138.71 ▲2.33

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for MasterBip Regiones de Chile
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.34 ▼1.304.44 ▲2.5144.68 ▲1.40
Dashboard /wp-admin2,221 ▲275.83 ▼0.0296.80 ▼9.9638.07 ▼4.41
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0439.11 ▲2.8535.16 ▼0.54
Add New Post /wp-admin/post-new.php1,540 ▲1418.32 ▲0.70655.42 ▼57.2674.62 ▲17.20
Media Library /wp-admin/upload.php1,394 ▼34.29 ▼0.0097.67 ▼11.4843.02 ▼4.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/masterbip-regiones-de-chile/masterbip-regiones-de-chile.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: woocommerce, woo, chile, regiones de chile, masterbip...

masterbip-regiones-de-chile/masterbip-regiones-de-chile.php 85% from 13 tests

The principal PHP file in "MasterBip Regiones de Chile" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "4.0+")
  • 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 review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin50 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP172831
Markdown19019

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin