10% google-plus-comments-by-forum-gt

Code Review | WordPress Google Plus Comments

WordPress plugin WordPress Google Plus Comments scored10%from 54 tests.

About plugin

  • Plugin page: google-plus-comme...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.5.2
  • WordPress version: 6.3.1
  • First release: Apr 22, 2013
  • Latest release: May 7, 2016
  • Number of updates: 9
  • Update frequency: every 123.4 days
  • Top authors: andreapernici (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /7,804 total downloads

Benchmarks

Plugin footprint 40% 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
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/google-plus-comments-by-forum-gt/google-plus-comments.php+41
    Methods with the same name as their class will not be constructors in a future version of PHP; AndreaGooglePlusComments has a deprecated constructor

Server metrics [RAM: ▼1.22MB] [CPU: ▼42.08ms] Passed 4 tests

Server-side resources used by WordPress Google Plus Comments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7112.80 ▼23.76
Dashboard /wp-admin2.79 ▼0.5119.71 ▼31.54
Posts /wp-admin/edit.php2.79 ▼0.5619.97 ▼23.15
Add New Post /wp-admin/post-new.php2.79 ▼3.0919.41 ▼89.87
Media Library /wp-admin/upload.php2.79 ▼0.4317.26 ▼16.48
Google Plus Comments /wp-admin/options-general.php?page=google-plus-comments-options2.7917.67

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Google Plus Comments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.21 ▼1.391.77 ▲0.0637.50 ▼5.19
Dashboard /wp-admin2,207 ▲195.82 ▲0.94137.81 ▲21.5650.87 ▲10.91
Posts /wp-admin/edit.php2,094 ▲52.05 ▲0.0343.83 ▲8.5336.18 ▲0.70
Add New Post /wp-admin/post-new.php1,415 ▼9918.01 ▲0.25596.12 ▼58.7750.52 ▼8.16
Media Library /wp-admin/upload.php1,392 ▲134.24 ▲0.02116.56 ▲13.5647.14 ▲2.81
Google Plus Comments /wp-admin/options-general.php?page=google-plus-comments-options7982.0324.1826.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+308
    Non-static method AndreaGooglePlusComments::Enable() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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 errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=google-plus-comments-options
    • > Deprecated in wp-includes/class-wp-hook.php+308
    Non-static method AndreaGooglePlusComments::Enable() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=google-plus-comments-options
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method AndreaGooglePlusComments::GooglePlusCommentsMenu() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=google-plus-comments-options
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method AndreaGooglePlusComments::GooglePlusCommentsOptions() should not be called statically

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
Almost there! Just 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 plugin_dir_url() in wp-content/plugins/google-plus-comments-by-forum-gt/google-plus-comments.php:30

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 96% from 29 tests

readme.txt Passed 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
3 plugin tags: google plus one button, social share, google

google-plus-comments-by-forum-gt/google-plus-comments.php 92% from 13 tests

The main PHP script in "WordPress Google Plus Comments" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("google-plus-comments-by-forum-gt.php" instead of "google-plus-comments.php")

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
Success! There were no dangerous files found in this plugin144 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15664144

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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