83% divisas-chilenas

Code Review | Divisas Chilenas

WordPress plugin Divisas Chilenas scored83%from 54 tests.

About plugin

  • Plugin page: divisas-chilenas
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 6, 2015
  • Latest release: Mar 7, 2015
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: gersonapablaza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,024 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.01MB] [CPU: ▼5.71ms] Passed 4 tests

Analyzing server-side resources used by Divisas Chilenas
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.62 ▲1.11
Dashboard /wp-admin3.32 ▲0.0154.39 ▲4.46
Posts /wp-admin/edit.php3.37 ▲0.0149.08 ▼5.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.94 ▼20.85
Media Library /wp-admin/upload.php3.24 ▲0.0138.34 ▲2.68

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_divisas_cl
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Divisas Chilenas
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.74 ▲0.391.84 ▲0.0143.31 ▼1.72
Dashboard /wp-admin2,192 ▲185.56 ▲0.0291.49 ▼11.6839.35 ▼2.21
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0336.81 ▼0.0332.86 ▼1.56
Add New Post /wp-admin/post-new.php1,526 ▼523.15 ▼0.06658.27 ▼7.7262.73 ▲7.81
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0498.00 ▼10.5546.48 ▼1.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_divisas_cl
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/divisas-chilenas/divisas-cl.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #3 (Ejemplo de un despliegue personalizado)
  • Donate link: Invalid URI found ("Pendiente")
You can take inspiration from this readme.txt

divisas-chilenas/divisas-cl.php 92% from 13 tests

The main file in "Divisas Chilenas" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("divisas-chilenas.php" instead of "divisas-cl.php")

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
Everything looks great! No dangerous files found in this plugin153 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14337141
CSS11012

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin