84% add-campo-rut-cf7

Code Review | Campo RUT para CF7

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

About plugin

  • Plugin page: add-campo-rut-cf7
  • Plugin version: 1.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.9.0
  • WordPress version: 6.3.1
  • First release: Mar 9, 2020
  • Latest release: Apr 5, 2022
  • Number of updates: 13
  • Update frequency: every 58.5 days
  • Top authors: delfo084 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active / 3,120 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: ▼5.24ms] Passed 4 tests

This is a short check of server-side resources used by Campo RUT para CF7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.24 ▼3.32
Dashboard /wp-admin3.31 ▲0.0142.71 ▼10.53
Posts /wp-admin/edit.php3.36 ▲0.0045.95 ▲1.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.66 ▼6.26
Media Library /wp-admin/upload.php3.23 ▲0.0033.76 ▼0.83

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

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

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 /2,802 ▲4513.23 ▼1.381.87 ▼0.0744.28 ▲0.97
Dashboard /wp-admin2,206 ▲154.84 ▼0.0495.60 ▼23.0437.09 ▼10.29
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0433.51 ▼2.9736.88 ▲3.83
Add New Post /wp-admin/post-new.php1,533 ▼023.42 ▲0.22601.83 ▼63.2753.32 ▼8.26
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0095.62 ▼6.5740.69 ▼2.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/add-campo-rut-cf7/cf7rut.php
    • > /wp-content/plugins/add-campo-rut-cf7/init.php
    • > /wp-content/plugins/add-campo-rut-cf7/rut-field-cf7.php

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: run, contact form 7, chileno, chile, rut...

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

Analyzing the main PHP file in "Campo RUT para CF7" version 1.4
The following require your attention:
  • Main file name: Name the main plugin file the same 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected273 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36440203
JavaScript1122870

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
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
No PNG images were found in this plugin