84% wp-site-verification-tool

Code Review | WP Site Verification tool

WordPress plugin WP Site Verification tool scored84%from 54 tests.

About plugin

  • Plugin page: wp-site-verificat...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.1.0
  • WordPress version: 6.3.1
  • First release: Sep 13, 2013
  • Latest release: Oct 29, 2022
  • Number of updates: 37
  • Update frequency: every 97.3 days
  • Top authors: pbearne (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

6,000+ active /25,532 total downloads

Benchmarks

Plugin footprint 82% 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.04MB] [CPU: ▼3.19ms] Passed 4 tests

Server-side resources used by WP Site Verification tool
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.32 ▼1.32
Dashboard /wp-admin3.35 ▲0.0455.29 ▲1.27
Posts /wp-admin/edit.php3.46 ▲0.1055.68 ▲2.17
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.19 ▼9.80
Media Library /wp-admin/upload.php3.27 ▲0.0436.46 ▼2.89
Site Verification /wp-admin/tools.php?page=wp-site-verification-tool_manage3.2833.99

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please fix the following
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/wp-site-verification-tool/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 16 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
wp-site-verification-tool_wp_site_verification_tool_contents
db_upgraded
wp-site-verification-tool_wp_site_verification_tool_on
can_compress_scripts
wp-site-verification-tool_wp_site_verification_tool_file
wp-site-verification-tool_wp_site_verification_tool_via_file
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Site Verification tool
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.61 ▼0.791.69 ▼0.2044.39 ▼0.28
Dashboard /wp-admin2,225 ▲225.83 ▲0.72104.24 ▼10.5039.67 ▼6.80
Posts /wp-admin/edit.php2,104 ▲72.03 ▲0.0140.37 ▲1.9235.61 ▲1.10
Add New Post /wp-admin/post-new.php1,548 ▲1723.39 ▲0.19680.58 ▼0.8554.41 ▲3.43
Media Library /wp-admin/upload.php1,407 ▲74.26 ▲0.1095.12 ▼24.7546.06 ▼4.91
Site Verification /wp-admin/tools.php?page=wp-site-verification-tool_manage9041.7127.0426.22

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'wp_site_verification_tool' not found in wp-content/plugins/wp-site-verification-tool/form/wp-site-verification-tool.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-site-verification-tool/lib/class-site-verification-tool.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'wp_site_verification_tool' not found in wp-content/plugins/wp-site-verification-tool/form/options-form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-site-verification-tool/lib/class-site-verification-tool.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: webmaster, vip, tool, site verification, certification

wp-site-verification-tool/wp-site-verification-tool.php Passed 13 tests

The main PHP script in "WP Site Verification tool" version 1.0.8 is automatically included on every request by WordPress
69 characters long description:
A tool to enable verification of site ownership via file or meta tag.

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
Good job! No executable or dangerous file extensions detected367 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP64070340
CSS12018
JavaScript1409

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity6.00
▷ Minimum class complexity5.00
▷ Maximum class complexity8.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1684.21%
▷ Public methods1894.74%
▷ Protected methods15.26%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin