84% website-verify

Code Review | Website Verify - Verify your domain ownership in most popular search engines

WordPress plugin Website Verify - Verify your domain ownership in most popular search engines scored84%from 54 tests.

About plugin

  • Plugin page: website-verify
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 6.3.1
  • First release: Aug 26, 2021
  • Latest release: Aug 27, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: qubethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /566 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.09MB] [CPU: ▼9.91ms] Passed 4 tests

An overview of server-side resources used by Website Verify - Verify your domain ownership in most popular search engines
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.01 ▼11.32
Dashboard /wp-admin3.41 ▲0.1150.54 ▼14.32
Posts /wp-admin/edit.php3.53 ▲0.1754.19 ▲2.14
Add New Post /wp-admin/post-new.php5.99 ▲0.1199.37 ▼12.09
Media Library /wp-admin/upload.php3.34 ▲0.1143.13 ▼1.90

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Website Verify - Verify your domain ownership in most popular search engines
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲6914.73 ▲0.142.10 ▼0.4146.14 ▼6.14
Dashboard /wp-admin2,240 ▲635.64 ▼0.0485.55 ▼23.0441.84 ▼9.55
Posts /wp-admin/edit.php2,148 ▲452.05 ▼0.0940.47 ▼0.5238.62 ▲1.03
Add New Post /wp-admin/post-new.php1,555 ▲14523.23 ▲5.36668.43 ▼64.2054.19 ▼6.55
Media Library /wp-admin/upload.php1,441 ▲474.25 ▲0.0499.01 ▼40.2045.85 ▼16.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Webstie_Verify_Admin_Setings_Abstract' not found in wp-content/plugins/website-verify/admin/class-admin-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/website-verify/includes/class-website-verify-frontend.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Requires php: Version format is invalid
You can take inspiration from this readme.txt

website-verify/website-verify.php Passed 13 tests

The main PHP script in "Website Verify - Verify your domain ownership in most popular search engines" version 1.0.2 is automatically included on every request by WordPress
80 characters long description:
Add verification code to verify your website using Google & Other Search Engines

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin767 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP14217370584
CSS130167
SVG10116

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity6.89
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods36
▷ Static methods38.33%
▷ Public methods2877.78%
▷ Protected methods00.00%
▷ Private methods822.22%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin