78% goo-share-this

Code Review | Goo Share This

WordPress plugin Goo Share This scored78%from 54 tests.

About plugin

  • Plugin page: goo-share-this
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 11, 2016
  • Latest release: Jun 11, 2016
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: Gunar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /668 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼6.52ms] 75% from 4 tests

Server-side resources used by Goo Share This
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 824.06ms on /wp-admin/admin.php?page=goo-tools-plugin-settings)
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.41 ▼10.42
Dashboard /wp-admin3.43 ▲0.1251.50 ▼2.11
Posts /wp-admin/edit.php3.54 ▲0.1850.62 ▲3.02
Add New Post /wp-admin/post-new.php6.01 ▲0.1284.76 ▼11.59
Media Library /wp-admin/upload.php3.35 ▲0.1237.97 ▼1.95
Goo Tools Plugins /wp-admin/admin.php?page=goo-tools-plugin-settings3.34824.06
Goo Share This /wp-admin/admin.php?page=goo-sharethis-plugin-settings3.3133.34

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Goo Share This
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲16313.43 ▼1.298.40 ▲6.6438.89 ▼8.48
Dashboard /wp-admin2,222 ▲455.55 ▼0.1183.99 ▼13.6335.35 ▼4.86
Posts /wp-admin/edit.php2,127 ▲242.00 ▲0.0237.62 ▼1.6333.04 ▼2.09
Add New Post /wp-admin/post-new.php1,548 ▲2223.16 ▲0.11672.46 ▼3.4756.87 ▼6.30
Media Library /wp-admin/upload.php1,430 ▲304.21 ▼0.01100.79 ▼17.8542.30 ▼5.13
Goo Tools Plugins /wp-admin/admin.php?page=goo-tools-plugin-settings8292.1223.6426.96
Goo Share This /wp-admin/admin.php?page=goo-sharethis-plugin-settings1,0512.0125.3634.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • goosh_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=goo-tools-plugin-settings
    • > Warning in wp-content/plugins/goo-share-this/goo_tools.php+34
    Invalid argument supplied for foreach()

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/goo-share-this/admin.php
    • > /wp-content/plugins/goo-share-this/goo_tools.php
    • > /wp-content/plugins/goo-share-this/goo-share-this.php

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: social share buttons, content, share, social network, sharer...

goo-share-this/goo-share-this.php Passed 13 tests

Analyzing the main PHP file in "Goo Share This" version 1.1.0
80 characters long description:
This plugin adds social button for sharing post on social media [goo-share-this]

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected860 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP311024665
CSS2260174
JavaScript23021

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity71.00
▷ Minimum class complexity71.00
▷ Maximum class complexity71.00
Average method complexity6.83
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods866.67%
▷ Protected methods00.00%
▷ Private methods433.33%
Functions11
▷ Named functions11100.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
18 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/stared_m.png9.19KB4.00KB▼ 56.51%
screenshot-1.png38.20KB21.36KB▼ 44.07%
images/fb.png0.75KB0.76KB0.00%
admin/b_dot.png0.19KB0.14KB▼ 25.25%
images/twitter_g.png0.50KB0.73KB0.00%