83% virtualbadge-io-certificate-validator

Code Review | Virtualbadge.io Certificate Validator

WordPress plugin Virtualbadge.io Certificate Validator scored83%from 54 tests.

About plugin

  • Plugin page: virtualbadge-io-c...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Feb 22, 2023
  • Latest release: Mar 6, 2023
  • Number of updates: 9
  • Update frequency: every 1.3 days
  • Top authors: futurenextgmbh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /194 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Virtualbadge.io Certificate Validator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0625.02 ▼21.77
Dashboard /wp-admin3.33 ▲0.0347.59 ▼2.09
Posts /wp-admin/edit.php3.38 ▲0.0249.92 ▲0.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.66 ▲6.84
Media Library /wp-admin/upload.php3.25 ▲0.0236.89 ▼0.34

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Virtualbadge.io Certificate Validator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.69 ▲0.381.67 ▼0.3245.95 ▲2.12
Dashboard /wp-admin2,211 ▲445.62 ▼0.0491.85 ▼12.4941.48 ▲0.84
Posts /wp-admin/edit.php2,119 ▲192.02 ▲0.0441.21 ▲1.1939.34 ▲2.95
Add New Post /wp-admin/post-new.php1,539 ▲1122.98 ▼0.13688.39 ▲23.5660.15 ▼3.34
Media Library /wp-admin/upload.php1,413 ▲134.22 ▲0.04108.79 ▲14.8949.60 ▲7.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/virtualbadge-io-certificate-validator/widget.php

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 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: virtualbadge, certificate, validator

virtualbadge-io-certificate-validator/virtual-badge-certificate-validator.php 69% from 13 tests

Analyzing the main PHP file in "Virtualbadge.io Certificate Validator" version 1.0.1
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: The principal plugin file should be the same as the plugin slug ("virtualbadge-io-certificate-validator.php" instead of "virtual-badge-certificate-validator.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Description: The description should be shorter than 140 characters (currently 224 characters long)

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
There were no executable files found in this plugin229 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32313229

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods975.00%
▷ Protected methods00.00%
▷ Private methods325.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
6 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/picture_4.png12.42KB5.25KB▼ 57.70%
assets/picture_1.png6.95KB5.68KB▼ 18.33%
assets/picture_6.png11.24KB4.99KB▼ 55.61%
assets/picture_3.png3.99KB3.01KB▼ 24.62%
assets/picture_5.png16.67KB6.98KB▼ 58.16%