10% validbot

Code Review | ValidBot - Validate Your Website

WordPress plugin ValidBot - Validate Your Website scored10%from 54 tests.

About plugin

  • Plugin page: validbot
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2021
  • Latest release: Nov 9, 2021
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: validbot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,095 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.80MB] [CPU: ▼55.91ms] Passed 4 tests

This is a short check of server-side resources used by ValidBot - Validate Your Website
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.19 ▼1.275.28 ▼35.38
Dashboard /wp-admin2.21 ▼1.097.12 ▼41.95
Posts /wp-admin/edit.php2.21 ▼1.157.41 ▼49.95
Add New Post /wp-admin/post-new.php2.21 ▼3.687.11 ▼96.37
Media Library /wp-admin/upload.php2.21 ▼1.025.82 ▼27.56

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for ValidBot - Validate Your Website
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.38 ▼0.181.75 ▼0.5244.71 ▲1.71
Dashboard /wp-admin2,217 ▲435.59 ▼0.0887.58 ▼6.9438.94 ▼2.94
Posts /wp-admin/edit.php2,122 ▲221.99 ▼0.0334.81 ▼6.0732.05 ▼7.04
Add New Post /wp-admin/post-new.php1,546 ▲1823.00 ▼0.04633.97 ▼34.5450.91 ▼11.67
Media Library /wp-admin/upload.php1,425 ▲224.22 ▲0.04109.11 ▲7.0243.78 ▼1.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the validbot.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

validbot/validbot.php Passed 13 tests

"ValidBot - Validate Your Website" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
100-Point Inspection and Validation of Your Domain Name and Website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin682 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP47242481
CSS1100176
SVG250025

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity25.00
▷ Minimum class complexity11.00
▷ Maximum class complexity39.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods14.17%
▷ Public methods2083.33%
▷ Protected methods00.00%
▷ Private methods416.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.08MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/computer.png83.17KB85.68KB0.00%