84% masterbip-comunas-de-chile

Code Review | MasterBip Comunas de Chile

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

About plugin

  • Plugin page: masterbip-comunas...
  • 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 17, 2020
  • Latest release: May 27, 2022
  • Number of updates: 4
  • Update frequency: every 177.5 days
  • Top authors: masterbip (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,223 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.91ms] Passed 4 tests

Server-side resources used by MasterBip Comunas de Chile
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /33.37 ▲29.866,112,984.53 ▲6,112,941.73
Dashboard /wp-admin3.40 ▲0.0151.06 ▼16.55
Posts /wp-admin/edit.php3.45 ▲0.0551.60 ▲0.50
Add New Post /wp-admin/post-new.php5.98 ▲0.0587.71 ▼9.83
Media Library /wp-admin/upload.php3.33 ▲0.0541.69 ▲2.23

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for MasterBip Comunas de Chile
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.20 ▼0.521.69 ▼0.1041.81 ▼3.14
Dashboard /wp-admin2,195 ▲245.65 ▼0.0184.78 ▼17.6839.69 ▼2.36
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0635.85 ▼0.3832.70 ▼3.58
Add New Post /wp-admin/post-new.php1,535 ▲718.15 ▼4.88644.26 ▼44.7368.44 ▲11.42
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.0596.45 ▼21.1043.86 ▼6.99

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/masterbip-comunas-de-chile/masterbip-comunas-de-chile.php:403

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

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
6 plugin tags: chile, woo, masterbip, comunas, comunas de chile...

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

The main PHP file in "MasterBip Comunas de Chile" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "4.0+")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected387 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1828368
Markdown19019

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected