84% masterbip-pesos-chilenos

Code Review | MasterBip Pesos Chilenos

WordPress plugin MasterBip Pesos Chilenos scored84%from 54 tests.

About plugin

  • Plugin page: masterbip-pesos-c...
  • 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: Apr 23, 2020
  • Latest release: May 27, 2022
  • Number of updates: 12
  • Update frequency: every 63.8 days
  • Top authors: masterbip (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /635 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.50ms] Passed 4 tests

Analyzing server-side resources used by MasterBip Pesos Chilenos
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0050.09 ▲9.32
Dashboard /wp-admin3.31 ▲0.0148.44 ▼5.66
Posts /wp-admin/edit.php3.36 ▲0.0050.60 ▲0.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.26 ▼17.96
Media Library /wp-admin/upload.php3.23 ▲0.0030.64 ▼6.83

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for MasterBip Pesos Chilenos
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▼0.371.74 ▼0.4345.77 ▲0.90
Dashboard /wp-admin2,198 ▲215.64 ▼0.0589.91 ▼8.1641.76 ▼6.15
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0038.76 ▲2.6334.95 ▲0.39
Add New Post /wp-admin/post-new.php1,545 ▼023.06 ▼0.21687.77 ▲23.3553.06 ▼3.26
Media Library /wp-admin/upload.php1,400 ▲64.23 ▲0.0997.97 ▼3.3844.78 ▼0.65

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 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-pesos-chilenos/masterbip-pesos-chilenos.php:34

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: paypal, woo, pesos chilenos, chile, woocommerce...

masterbip-pesos-chilenos/masterbip-pesos-chilenos.php 85% from 13 tests

The entry point to "MasterBip Pesos Chilenos" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "4.0 +")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin38 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown19019
PHP152719

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions3
▷ Named functions3100.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
No PNG files were detected