10% google-plus-badge-like-fb-like-box

Code Review | Google+ Follow Box

WordPress plugin Google+ Follow Box scored 10% from 54 tests.

About plugin

  • Plugin page: google-plus-badge...
  • Plugin version: 0.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.5.2
  • WordPress version: 5.8.1
  • First release: Aug 27, 2013
  • Latest release: Jun 1, 2016
  • Number of updates: 17
  • Update frequency: every 59.4 days
  • Top authors: Manivannan M (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active / 12,544 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
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/google-plus-badge-like-fb-like-box/google_plus_like_fb_like_box.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; Google_Plus_Like_FB_Like has a deprecated constructor

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

Analyzing server-side resources used by Google+ Follow Box
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼1.035.12 ▼33.07
Dashboard /wp-admin1.82 ▼1.236.40 ▼50.93
Posts /wp-admin/edit.php1.82 ▼1.285.70 ▼40.38
Add New Post /wp-admin/post-new.php1.82 ▼3.616.57 ▼654.87
Media Library /wp-admin/upload.php1.82 ▼1.186.27 ▼32.61

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_google_plus_follow_box

Browser metrics Passed 4 tests

This is an overview of browser requirements for Google+ Follow Box
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲10616.19 ▲0.5512.61 ▲2.5950.89 ▲3.88
Dashboard /wp-admin2,967 ▲335.96 ▼0.05148.61 ▼19.01109.82 ▼5.03
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0172.20 ▼14.9797.83 ▲4.87
Add New Post /wp-admin/post-new.php1,683 ▼018.78 ▲2.39428.15 ▲4.10116.49 ▲1.05
Media Library /wp-admin/upload.php1,807 ▼05.00 ▼0.03166.01 ▼8.81119.58 ▼7.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/google-plus-badge-like-fb-like-box/google_plus_like_fb_like_box.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; Google_Plus_Like_FB_Like has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_google_plus_follow_box

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/google-plus-badge-like-fb-like-box/google_plus_like_fb_like_box.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: google followers pic, google plus badge, google follow box, google plus follow box, google plus follow button...

google-plus-badge-like-fb-like-box/google_plus_like_fb_like_box.php 92% from 13 tests

Analyzing the main PHP file in "Google+ Follow Box" version 0.1.8
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("google-plus-badge-like-fb-like-box.php" instead of "google_plus_like_fb_like_box.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected136 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13621136

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity6.75
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected