10% google-wordpress-widgets

Code Review | Google+ Plus Wordpress Widget

WordPress plugin Google+ Plus Wordpress Widget scored10%from 54 tests.

About plugin

  • Plugin page: google-wordpress-...
  • Plugin version: 5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.4
  • WordPress version: 6.3.1
  • First release: Aug 1, 2011
  • Latest release: Sep 15, 2012
  • Number of updates: 128
  • Update frequency: every 3.2 days
  • Top authors: mypatricks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /22,243 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/google-wordpress-widgets/google-plus-wordpress-widget.php+151
    Methods with the same name as their class will not be constructors in a future version of PHP; Google_Plus_Widget has a deprecated constructor

Server metrics [RAM: ▼1.83MB] [CPU: ▼55.68ms] Passed 4 tests

Analyzing server-side resources used by Google+ Plus Wordpress Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.305.57 ▼38.56
Dashboard /wp-admin2.18 ▼1.136.27 ▼47.06
Posts /wp-admin/edit.php2.18 ▼1.186.76 ▼43.50
Add New Post /wp-admin/post-new.php2.18 ▼3.716.37 ▼93.61
Media Library /wp-admin/upload.php2.18 ▼1.056.22 ▼33.73

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Google+ Plus Wordpress Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲6813.20 ▼1.185.38 ▲3.6342.32 ▲0.47
Dashboard /wp-admin2,224 ▲214.88 ▼0.97102.82 ▼9.8140.96 ▼6.10
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0337.67 ▲1.4436.45 ▲0.46
Add New Post /wp-admin/post-new.php1,526 ▼017.71 ▲0.02636.63 ▼59.2848.86 ▼6.00
Media Library /wp-admin/upload.php1,403 ▼04.25 ▲0.02101.74 ▼15.3643.95 ▼5.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/google-wordpress-widgets/google-plus-wordpress-widget.php+151
    Methods with the same name as their class will not be constructors in a future version of PHP; Google_Plus_Widget has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_googleplus
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/google-wordpress-widgets/google-plus-wordpress-widget.php:151

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 90% 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:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Latest post/updates display), #2 (Enter your Google+ ID, Your Google+ ID are 21 digit number behind the http://plus.google.com/ part of the url at your profile page), #3 (Click "Scan Me" to view QR Code), #4 (Just show profile without updates/post)
You can look at the official readme.txt

google-wordpress-widgets/google-plus-wordpress-widget.php 92% from 13 tests

This is the main PHP file of "Google+ Plus Wordpress Widget" version 5.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: The principal plugin file should be the same as the plugin slug ("google-wordpress-widgets.php" instead of "google-plus-wordpress-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin201 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP136045201

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
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
screenshot-1.png4.70KB2.65KB▼ 43.50%