84% validar-identidad-cf7

Code Review | Validar identidad CF7

WordPress plugin Validar identidad CF7 scored84%from 54 tests.

About plugin

  • Plugin page: validar-identidad...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Jul 29, 2021
  • Latest release: Jun 14, 2022
  • Number of updates: 9
  • Update frequency: every 35.7 days
  • Top authors: davidsancho4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /899 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by Validar identidad CF7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.22 ▼1.55
Dashboard /wp-admin3.31 ▲0.0045.28 ▼1.85
Posts /wp-admin/edit.php3.36 ▲0.0047.09 ▼4.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.62 ▼2.03
Media Library /wp-admin/upload.php3.23 ▲0.0034.72 ▼0.29

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Validar identidad CF7: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5913.67 ▼0.701.62 ▲0.0541.72 ▲3.02
Dashboard /wp-admin2,208 ▲175.82 ▼0.0897.78 ▼4.1240.75 ▼3.02
Posts /wp-admin/edit.php2,072 ▼172.01 ▼0.0140.41 ▼1.7636.46 ▼2.34
Add New Post /wp-admin/post-new.php1,538 ▲523.49 ▲0.25611.58 ▼95.7167.34 ▲10.39
Media Library /wp-admin/upload.php1,393 ▲24.21 ▲0.04104.83 ▲6.2845.33 ▼0.95

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

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
Even though everything seems fine, this is not 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 fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/validar-identidad-cf7/validar-identidad-cf7.php:30
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/validar-identidad-cf7/validar-identidad-cf7.php on line 28
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/validar-identidad-cf7/validar-identidad-cf7.php on line 28
    • > 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-identidad-cf7/validar-identidad-cf7.php on line 28

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: form, contact form, identidad, dni, nif...

validar-identidad-cf7/validar-identidad-cf7.php 92% from 13 tests

The primary PHP file in "Validar identidad CF7" version 1.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 detected298 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17530298

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions8
▷ Named functions8100.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