10% ams-google-webmaster-tools

Code Review | AMS Google Webmaster Tools

WordPress plugin AMS Google Webmaster Tools scored10%from 54 tests.

About plugin

  • Plugin page: ams-google-webmas...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.9
  • WordPress version: 6.3.1
  • First release: Sep 16, 2016
  • Latest release: Jan 23, 2022
  • Number of updates: 29
  • Update frequency: every 67.4 days
  • Top authors: manojsv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /10,754 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/ams-google-webmaster-tools/ams-google-webmaster-tools.php+84
    Undefined variable: amsgwmt_webmaster_manoj_s_vrathan

Server metrics [RAM: ▼1.94MB] [CPU: ▼58.68ms] Passed 4 tests

This is a short check of server-side resources used by AMS Google Webmaster Tools
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.78 ▼39.47
Dashboard /wp-admin2.08 ▼1.275.41 ▼56.21
Posts /wp-admin/edit.php2.08 ▼1.285.43 ▼44.35
Add New Post /wp-admin/post-new.php2.08 ▼3.816.10 ▼94.69
Media Library /wp-admin/upload.php2.08 ▼1.156.10 ▼27.23
AMS Google Webmaster Tools /wp-admin/options-general.php?page=amsgwmt_webmaster_tools2.085.15

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for AMS Google Webmaster Tools
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6013.34 ▼1.044.83 ▲3.1442.24 ▼1.87
Dashboard /wp-admin2,228 ▲255.86 ▼0.18109.28 ▲1.6843.09 ▲3.82
Posts /wp-admin/edit.php2,104 ▲72.00 ▼0.0441.70 ▲4.4636.33 ▼0.69
Add New Post /wp-admin/post-new.php1,548 ▲823.13 ▼0.33663.90 ▲20.6151.85 ▲5.62
Media Library /wp-admin/upload.php1,401 ▼24.24 ▲0.0399.20 ▼1.0545.43 ▲0.36
AMS Google Webmaster Tools /wp-admin/options-general.php?page=amsgwmt_webmaster_tools8132.1422.5827.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/ams-google-webmaster-tools/ams-google-webmaster-tools.php+84
    Undefined variable: amsgwmt_webmaster_manoj_s_vrathan
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=amsgwmt_webmaster_tools
    • > Notice in wp-content/plugins/ams-google-webmaster-tools/ams-google-webmaster-tools.php+84
    Undefined variable: amsgwmt_webmaster_manoj_s_vrathan

SRP 50% 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/ams-google-webmaster-tools/includes/amsgwmt-options.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: code, verification, plugin, google webmaster tools, tracking code...

ams-google-webmaster-tools/ams-google-webmaster-tools.php 92% from 13 tests

"AMS Google Webmaster Tools" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin65 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2202065

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin