10% validar-rut-chile-con-cf7

Code Review | Validar RUT Chile con CF7

WordPress plugin Validar RUT Chile con CF7 scored 10% from 54 tests.

About plugin

  • Plugin page: validar-rut-chile...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.3
  • WordPress version: 6.3.1
  • First release: Jan 13, 2022
  • Latest release: Jan 15, 2022
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: rafaelcrony (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 811 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/validar-rut-chile-con-cf7/validar-rut-chile.php+62
    Array and string offset access syntax with curly braces is deprecated

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

This is a short check of server-side resources used by Validar RUT Chile con CF7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.95 ▼2.23
Dashboard /wp-admin3.31 ▲0.0048.41 ▲2.80
Posts /wp-admin/edit.php3.36 ▲0.0044.53 ▼2.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.60 ▼6.26
Media Library /wp-admin/upload.php3.23 ▲0.0033.93 ▼2.48

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Validar RUT Chile con CF7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲2913.18 ▼0.091.78 ▲0.0144.88 ▲5.19
Dashboard /wp-admin2,227 ▲184.85 ▼0.02107.14 ▼4.1943.91 ▲1.94
Posts /wp-admin/edit.php2,109 ▲172.02 ▲0.0335.71 ▼3.6033.85 ▼2.12
Add New Post /wp-admin/post-new.php1,547 ▲523.21 ▲5.17677.94 ▲43.0655.39 ▼2.00
Media Library /wp-admin/upload.php1,406 ▲184.12 ▼0.05109.86 ▼4.9147.83 ▼0.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/validar-rut-chile-con-cf7/validar-rut-chile.php on line 13
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/validar-rut-chile-con-cf7/validar-rut-chile.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/validar-rut-chile-con-cf7/validar-rut-chile.php:33
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/validar-rut-chile-con-cf7/validar-rut-chile.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: contact, validar, form, contact form 7, rut...

validar-rut-chile-con-cf7/validar-rut-chile.php 92% from 13 tests

Analyzing the main PHP file in "Validar RUT Chile con CF7" version 1.2
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("validar-rut-chile-con-cf7.php" instead of "validar-rut-chile.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected107 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21116107

PHP code Passed 2 tests

An short overview of 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.53
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
PNG images were not found in this plugin