90% smntcs-google-webmaster-tools

Code Review | SMNTCS Google Webmaster Tools

WordPress plugin SMNTCS Google Webmaster Tools scored90%from 54 tests.

About plugin

  • Plugin page: smntcs-google-web...
  • Plugin version: 3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: Mar 7, 2016
  • Latest release: Oct 2, 2023
  • Number of updates: 65
  • Update frequency: every 42.6 days
  • Top authors: nielslange (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

8,000+ active /123,508 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by SMNTCS Google Webmaster Tools
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.99 ▼6.28
Dashboard /wp-admin3.32 ▲0.0147.26 ▼5.64
Posts /wp-admin/edit.php3.37 ▲0.0151.57 ▲1.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.63 ▼1.73
Media Library /wp-admin/upload.php3.24 ▲0.0138.19 ▲3.36

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

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

Browser metrics Passed 4 tests

A check of browser resources used by SMNTCS Google Webmaster Tools
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.78 ▼0.971.77 ▼0.6640.36 ▼6.85
Dashboard /wp-admin2,224 ▲185.90 ▲1.02105.60 ▲5.6641.34 ▲1.56
Posts /wp-admin/edit.php2,103 ▼02.02 ▲0.0340.28 ▼1.5135.10 ▼1.90
Add New Post /wp-admin/post-new.php1,547 ▲2123.41 ▲5.77669.20 ▲3.8257.05 ▲3.48
Media Library /wp-admin/upload.php1,394 ▼94.21 ▲0.0095.31 ▼5.2044.27 ▲2.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser issues were found

Optimizations

Plugin configuration Passed 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
2 plugin tags: google search console, google webmaster tools

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

"SMNTCS Google Webmaster Tools" version 3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
40 characters long description:
Adds Google Webmaster Tools to your site

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
Good job! No executable or dangerous file extensions detected5,778 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JSON5005,499
PO File2141478
Markdown147069
JavaScript4134346
PHP193943
XML25335
YAML1008

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 1.08MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png267.78KB100.85KB▼ 62.34%
assets/icon-256x256.png104.20KB39.96KB▼ 61.65%
assets/icon-128x128.png30.85KB12.54KB▼ 59.34%
assets/screenshot-1.png193.12KB49.71KB▼ 74.26%
cypress/screenshots/plugin.test.js/Admin -- can ensure the SMNTCS Custom Logo Link is activated -- before each hook (failed).png204.40KB53.93KB▼ 73.61%