10% verifiedvisitors

Code Review | VerifiedVisitors

WordPress plugin VerifiedVisitors scored10%from 54 tests.

About plugin

  • Plugin page: verifiedvisitors
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Mar 30, 2023
  • Latest release: May 24, 2023
  • Number of updates: 4
  • Update frequency: every 13.8 days
  • Top authors: verifiedvisitors (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /365 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
You still need to fix the following installer errors
  • Install procedure had errors
    • > 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.81MB] [CPU: ▼55.63ms] Passed 4 tests

A check of server-side resources used by VerifiedVisitors
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.33 ▼1.1412.36 ▼35.81
Dashboard /wp-admin2.15 ▼1.156.51 ▼54.23
Posts /wp-admin/edit.php2.15 ▼1.207.17 ▼42.58
Add New Post /wp-admin/post-new.php2.15 ▼3.737.88 ▼89.91
Media Library /wp-admin/upload.php2.15 ▼1.085.64 ▼34.65

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

VerifiedVisitors: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,235 ▲47415.11 ▲0.468.61 ▲6.80180.22 ▲132.29
Dashboard /wp-admin2,214 ▲345.58 ▼0.0994.19 ▼4.7440.69 ▼2.94
Posts /wp-admin/edit.php2,116 ▲161.99 ▼0.2033.44 ▼3.0533.50 ▼6.28
Add New Post /wp-admin/post-new.php1,543 ▲1720.78 ▼2.39597.47 ▼90.2647.88 ▼11.97
Media Library /wp-admin/upload.php1,410 ▲104.19 ▲0.09101.83 ▼7.1041.49 ▼1.89

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
The following items require your attention
  • The plugin did not uninstall 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.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% 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 0% 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/verifiedvisitors/templates/blocked.php
    • > /wp-content/plugins/verifiedvisitors/VerifiedVisitors.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function VerifiedVisitors\\esc_html() in wp-content/plugins/verifiedvisitors/templates/captcha.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

verifiedvisitors/VerifiedVisitors.php 92% from 13 tests

The main file in "VerifiedVisitors" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("verifiedvisitors.php" instead of "VerifiedVisitors.php")

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
Everything looks great! No dangerous files found in this plugin620 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP159419620

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.92
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods24
▷ Static methods1041.67%
▷ Public methods2187.50%
▷ Protected methods00.00%
▷ Private methods312.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants222.22%
▷ Class constants777.78%
▷ Public constants7100.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
There are no PNG files in this plugin