82% wppm-google-webmaster-tools

Code Review | WPPM Google Webmaster Tools

WordPress plugin WPPM Google Webmaster Tools scored 82% from 54 tests.

About plugin

  • Plugin page: wppm-google-webma...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.9.4
  • WordPress version: 5.8.1
  • First release: Jan 22, 2018
  • Latest release: Feb 10, 2018
  • Number of updates: 10
  • Update frequency: every 2.2 days
  • Top authors: pradeepku041 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 708 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼180.01ms] Passed 4 tests

An overview of server-side resources used by WPPM Google Webmaster Tools
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0227.81 ▲0.38
Dashboard /wp-admin3.09 ▲0.0234.63 ▼8.95
Posts /wp-admin/edit.php3.14 ▲0.0337.75 ▼0.50
Add New Post /wp-admin/post-new.php5.45 ▲0.0173.57 ▼710.96
Media Library /wp-admin/upload.php3.03 ▲0.0329.88 ▲3.99
Google Webmaster Tools /wp-admin/options-general.php?page=wppm-google-webmaster-tools3.0022.02

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 3 new options
New WordPress options
wppm_bring_webmaster_code
wppm_google_webmaster_code
wppm_alexa_varify_code

Browser metrics Passed 4 tests

Checking browser requirements for WPPM Google Webmaster Tools
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,677 ▲7616.00 ▼0.036.07 ▼3.3073.29 ▼6.09
Dashboard /wp-admin2,935 ▲396.11 ▼0.06115.98 ▼13.65167.96 ▼4.73
Posts /wp-admin/edit.php2,745 ▲23.23 ▼0.0162.88 ▼3.53134.40 ▼5.20
Add New Post /wp-admin/post-new.php3,731 ▼415.31 ▼3.14454.33 ▼16.33166.90 ▼4.08
Media Library /wp-admin/upload.php1,757 ▲55.44 ▼0.08141.56 ▼8.03181.40 ▲1.75
Google Webmaster Tools /wp-admin/options-general.php?page=wppm-google-webmaster-tools1,3495.38144.51139.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wppm-google-webmaster-tools/social-media.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/wppm-google-webmaster-tools/wppm-google-webmaster-tools.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=wppm-google-webmaster-tools
    • > Network (severe)
    https://cdn.syndication.twimg.com/widgets/followbutton/info.json?callback=__twttr.setFollowersCountAndFollowing&lang=en&screen_names=asktopradeep - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in wppm-google-webmaster-tools/assets to your readme.txt
  • Tags: Please delete some tags, you are using 26 tag instead of maximum 10
You can take inspiration from this readme.txt

wppm-google-webmaster-tools/wppm-google-webmaster-tools.php Passed 13 tests

The primary PHP file in "WPPM Google Webmaster Tools" version 1.0 is used by WordPress to initiate all plugin functionality
72 characters long description:
Google Webmaster verification Tools for your Wordpress websites & blogs.

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
Good job! No executable or dangerous file extensions detected176 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP37716176

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/menu_icon.png0.69KB0.49KB▼ 29.18%