10% pinterest-verify-meta-tag

Code Review | Pinterest Verify Meta Tag

WordPress plugin Pinterest Verify Meta Tag scored10%from 54 tests.

About plugin

  • Plugin page: pinterest-verify-...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Mar 16, 2013
  • Latest release: Apr 27, 2014
  • Number of updates: 23
  • Update frequency: every 17.7 days
  • Top authors: marviepons (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /28,880 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/pinterest-verify-meta-tag/pinterest-verify-meta-tag.php+193
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.77ms] Passed 4 tests

Server-side resources used by Pinterest Verify Meta Tag
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.33 ▼1.95
Dashboard /wp-admin3.34 ▲0.0348.41 ▼2.88
Posts /wp-admin/edit.php3.39 ▲0.0349.79 ▼7.62
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.34 ▼2.61
Media Library /wp-admin/upload.php3.26 ▲0.0342.38 ▼0.74
Pinterest Verify Meta /wp-admin/options-general.php?page=pvmt3.2332.66

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pinterest Verify Meta Tag
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.31 ▼0.422.05 ▼0.1644.17 ▲3.20
Dashboard /wp-admin2,202 ▲285.66 ▼0.0185.55 ▼13.6041.91 ▼0.35
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0140.05 ▼0.8437.11 ▼3.11
Add New Post /wp-admin/post-new.php1,529 ▲323.14 ▲0.01678.07 ▲23.2250.41 ▼8.33
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.00100.46 ▼7.1145.93 ▲0.42
Pinterest Verify Meta /wp-admin/options-general.php?page=pvmt1,0082.7666.9929.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pinterest-verify-meta-tag/pinterest-verify-meta-tag.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (settings), #2 (saved option)
The official readme.txt is a good inspiration

pinterest-verify-meta-tag/pinterest-verify-meta-tag.php Passed 13 tests

This is the main PHP file of "Pinterest Verify Meta Tag" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
74 characters long description:
Add Pinterest meta tag verification code to the HEAD section of your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin145 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13424145

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/twitter-icon.png1.71KB1.64KB▼ 3.89%
images/pc-icon.png0.88KB1.05KB0.00%
images/facebook-icon.png1.65KB1.61KB▼ 2.89%