94% add-campo-rut-cf7

Code Review | Campo RUT para CF7

WordPress plugin Campo RUT para CF7 scored 94% from 54 tests.

About plugin

  • Plugin page: add-campo-rut-cf7
  • Plugin version: 1.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.6
  • WordPress version: 5.8.1
  • First release: Mar 9, 2020
  • Latest release: Dec 10, 2020
  • Number of updates: 9
  • Update frequency: every 31.0 days
  • Top authors: delfo084 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active / 1,598 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼149.80ms] Passed 4 tests

Analyzing server-side resources used by Campo RUT para CF7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0433.74 ▲11.12
Dashboard /wp-admin3.10 ▲0.0336.70 ▼8.49
Posts /wp-admin/edit.php3.15 ▲0.0441.01 ▲7.29
Add New Post /wp-admin/post-new.php5.46 ▲0.0275.19 ▼588.51
Media Library /wp-admin/upload.php3.04 ▲0.0423.38 ▼9.50

Server storage [IO: ▲0.02MB] [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, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Campo RUT para CF7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,720 ▲11915.83 ▲0.265.53 ▲0.4483.19 ▲9.69
Dashboard /wp-admin2,930 ▲386.11 ▼0.09113.16 ▼16.06178.12 ▲5.14
Posts /wp-admin/edit.php2,740 ▲163.36 ▼0.0163.79 ▼0.45134.01 ▼5.40
Add New Post /wp-admin/post-new.php3,699 ▲117.99 ▼0.17461.04 ▼20.47156.55 ▼17.80
Media Library /wp-admin/upload.php1,749 ▼05.51 ▲0.03138.39 ▼34.17181.38 ▼41.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/add-campo-rut-cf7/rut-field-cf7.php
    • > /wp-content/plugins/add-campo-rut-cf7/cf7rut.php
    • > /wp-content/plugins/add-campo-rut-cf7/init.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: run, wordpress, rut, chile, chileno...

add-campo-rut-cf7/rut-field-cf7.php 92% from 13 tests

The principal PHP file in "Campo RUT para CF7" v. 1.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("add-campo-rut-cf7.php" instead of "rut-field-cf7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin273 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36440203
JavaScript1122870

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods787.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin