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

Code Review | Bing Site Verification plugin using Meta Tag

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

About plugin

  • Plugin page: bing-site-verific...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.1-4.9
  • WordPress version: 5.9.2
  • First release: Nov 3, 2012
  • Latest release: Nov 9, 2017
  • Number of updates: 4
  • Update frequency: every 458.0 days
  • Top authors: uniquecoder@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 10,702 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by Bing Site Verification plugin using Meta Tag
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0257.24 ▲6.73
Dashboard /wp-admin3.43 ▲0.0234.80 ▲1.33
Posts /wp-admin/edit.php3.66 ▲0.0237.51 ▲0.63
Add New Post /wp-admin/post-new.php6.90 ▼0.0796.60 ▼1,169.35
Media Library /wp-admin/upload.php3.31 ▲0.0225.45 ▼1.67
bing Site Verification /wp-admin/options-general.php?page=bing-meta-tag-verification3.2822.40

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Bing Site Verification plugin using Meta Tag
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲3716.24 ▲0.495.70 ▼0.912.19 ▼0.49
Dashboard /wp-admin2,897 ▲366.14 ▼0.04116.74 ▼17.29158.83 ▲4.29
Posts /wp-admin/edit.php2,693 ▼13.23 ▼0.0064.78 ▲2.04140.38 ▲1.44
Add New Post /wp-admin/post-new.php1,664 ▲2516.47 ▲0.73403.56 ▼12.22155.91 ▲7.47
Media Library /wp-admin/upload.php1,703 ▲55.51 ▼0.03147.11 ▲8.08183.20 ▼2.18
bing Site Verification /wp-admin/options-general.php?page=bing-meta-tag-verification1,0752.3753.65123.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bing-site-verification-using-meta-tag/bingMetaTagSiteVerification.php:126

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Add your website in Bing Webmaster), #2 (Select Alternate Methods), #3 (Copy the Code)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === bing-site-verification-using-meta-tag === )
You can look at the official readme.txt

bing-site-verification-using-meta-tag/bingMetaTagSiteVerification.php 92% from 13 tests

This is the main PHP file of "Bing Site Verification plugin using Meta Tag" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("bing-site-verification-using-meta-tag.php" instead of "bingMetaTagSiteVerification.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1332379

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions7
▷ Named functions7100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png22.56KB13.02KB▼ 42.27%
screenshot-1.png13.04KB7.33KB▼ 43.81%