93% google-site-verification-using-meta-tag

Code Review | Google Site Verification plugin using Meta Tag

WordPress plugin Google Site Verification plugin using Meta Tag scored 93% from 54 tests.

About plugin

  • Plugin page: google-site-verif...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.1-4.9.8
  • WordPress version: 5.9.2
  • First release: Aug 27, 2012
  • Latest release: Nov 12, 2018
  • Number of updates: 13
  • Update frequency: every 174.5 days
  • Top authors: uniquecoder@gmail.com (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

8,000+ active / 81,050 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼292.65ms] Passed 4 tests

An overview of server-side resources used by Google Site Verification plugin using Meta Tag
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0653.88 ▲1.34
Dashboard /wp-admin3.44 ▲0.0433.29 ▼0.25
Posts /wp-admin/edit.php3.67 ▲0.0339.36 ▲0.35
Add New Post /wp-admin/post-new.php6.90 ▼0.0796.45 ▼1,169.92
Media Library /wp-admin/upload.php3.32 ▲0.0324.37 ▼0.76
Google Site Verification /wp-admin/options-general.php?page=google-meta-tag-verification3.2921.97

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Google Site Verification plugin using Meta Tag
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,920 ▲16616.27 ▲0.609.36 ▲3.512.54 ▲0.17
Dashboard /wp-admin2,902 ▲416.18 ▼0.07118.33 ▼19.30156.64 ▼8.89
Posts /wp-admin/edit.php2,698 ▲73.24 ▲0.0161.95 ▲0.01141.28 ▲1.89
Add New Post /wp-admin/post-new.php1,692 ▲218.23 ▼3.05397.42 ▼43.68167.73 ▲10.81
Media Library /wp-admin/upload.php1,708 ▲105.54 ▲0.03141.17 ▼12.21191.63 ▲2.75
Google Site Verification /wp-admin/options-general.php?page=google-meta-tag-verification1,0752.4254.06127.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/google-site-verification-using-meta-tag/GoogleMetaTagSiteVerification.php:123

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === google-site-verification-using-meta-tag === )
  • Screenshots: Please describe screenshot #4 in google-site-verification-using-meta-tag/assets to your readme.txt
Please take inspiration from this readme.txt

google-site-verification-using-meta-tag/GoogleMetaTagSiteVerification.php 92% from 13 tests

The main file in "Google Site Verification plugin using Meta Tag" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("google-site-verification-using-meta-tag.php" instead of "GoogleMetaTagSiteVerification.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin137 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14724124
JavaScript10113

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.18MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png28.58KB7.78KB▼ 72.78%
screenshot-4.png52.40KB17.70KB▼ 66.22%
screenshot-3.png78.17KB24.11KB▼ 69.16%
screenshot-1.png25.44KB6.49KB▼ 74.48%