73% validar-certificados-de-cursos

Code Review | ValidateCertify - Free

WordPress plugin ValidateCertify - Free scored73%from 54 tests.

About plugin

  • Plugin page: validar-certifica...
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 14, 2023
  • Latest release: Aug 15, 2023
  • Number of updates: 48
  • Update frequency: every 1.3 days
  • Top authors: jrevillah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /317 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.35ms] Passed 4 tests

This is a short check of server-side resources used by ValidateCertify - Free
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.73 ▼2.85
Dashboard /wp-admin3.36 ▲0.0246.94 ▼22.60
Posts /wp-admin/edit.php3.41 ▲0.0651.05 ▲3.23
Add New Post /wp-admin/post-new.php5.94 ▲0.06101.97 ▲3.39
Media Library /wp-admin/upload.php3.28 ▲0.0636.47 ▲0.82
Settings /wp-admin/admin.php?page=ajustes-validatecertify3.2544.86
Modify certificate /wp-admin/admin.php?page=eliminar_certificados3.2534.80
Edit Certificate /wp-admin/admin.php?page=editar_certificados3.2532.00
ValidateCertify /wp-admin/admin.php?page=ValidateCertify3.2532.81
Add Certificate /wp-admin/admin.php?page=agregar-certificado3.2531.95

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables
wp_stvc_validatecertify
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

ValidateCertify - Free: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲11614.69 ▲0.271.80 ▼0.2844.16 ▼3.03
Dashboard /wp-admin2,230 ▲535.65 ▼0.0190.42 ▼10.0839.07 ▼4.05
Posts /wp-admin/edit.php2,135 ▲321.95 ▼0.0242.12 ▲5.7535.10 ▼3.76
Add New Post /wp-admin/post-new.php1,553 ▲2723.07 ▼0.14608.39 ▼77.7369.27 ▲10.26
Media Library /wp-admin/upload.php1,438 ▲444.21 ▲0.0499.36 ▼4.6243.73 ▼1.69
Settings /wp-admin/admin.php?page=ajustes-validatecertify8122.0023.9028.16
Modify certificate /wp-admin/admin.php?page=eliminar_certificados8351.9922.0526.81
Edit Certificate /wp-admin/admin.php?page=editar_certificados8152.0324.2127.79
ValidateCertify /wp-admin/admin.php?page=ValidateCertify8682.0324.6024.94
Add Certificate /wp-admin/admin.php?page=agregar-certificado8892.0323.1822.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_stvc_validatecertify
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_charset_collate() on null in wp-content/plugins/validar-certificados-de-cursos/includes/class-stvc-activator.php:4
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/validar-certificados-de-cursos/includes/class-stvc-activator.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/validar-certificados-de-cursos/includes/class-stvc-menu.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/validar-certificados-de-cursos/ValidateCertify-Free.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: sell courses, education, certificate

validar-certificados-de-cursos/ValidateCertify-Free.php 62% from 13 tests

The entry point to "ValidateCertify - Free" version 1.3.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("6.1" instead of "6.0")
  • Description: The description should be shorter than 140 characters (currently 330 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("validar-certificados-de-cursos.php" instead of "ValidateCertify-Free.php")
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "7.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin649 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP45745439
PO File14969133
CSS116173
SVG1004

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.08MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/ValidateCertify.png80.61KB5.55KB▼ 93.12%