77% good-old-share

Code Review | Good old Share

WordPress plugin Good old Share scored77%from 54 tests.

About plugin

  • Plugin page: good-old-share
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 3, 2015
  • Latest release: Nov 5, 2023
  • Number of updates: 32
  • Update frequency: every 98.1 days
  • Top authors: whiletrue (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /8,572 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Good old Share
Please take the time to fix the following items
  • CPU: Total CPU usage should be kept under 500.00ms (currently 1,005.77ms on /wp-admin/options-general.php?page=good_old_share_options)
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2636.77 ▼3.42
Dashboard /wp-admin3.56 ▲0.2246.96 ▼12.82
Posts /wp-admin/edit.php3.61 ▲0.2652.39 ▲0.26
Add New Post /wp-admin/post-new.php6.15 ▲0.2692.86 ▲1.47
Media Library /wp-admin/upload.php3.49 ▲0.2636.20 ▲2.63
Good old share /wp-admin/options-general.php?page=good_old_share_options4.701,005.77
Good old counts /wp-admin/options-general.php?page=good_old_share_counts3.8440.61

Server storage [IO: ▲0.10MB] [DB: ▲0.06MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Good old Share
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲14715.06 ▲0.7171.18 ▲69.5647.46 ▲8.11
Dashboard /wp-admin2,194 ▲145.58 ▼0.0889.13 ▲4.3943.70 ▲3.55
Posts /wp-admin/edit.php2,106 ▲32.05 ▲0.0839.51 ▼3.0235.24 ▼1.19
Add New Post /wp-admin/post-new.php6,267 ▲4,73721.30 ▼1.65868.35 ▲157.3634.11 ▼36.53
Media Library /wp-admin/upload.php1,405 ▲54.13 ▼0.03101.06 ▲0.1240.34 ▼0.86
Good old share /wp-admin/options-general.php?page=good_old_share_options2,3722.1532.6939.87
Good old counts /wp-admin/options-general.php?page=good_old_share_counts1,1855.04130.9240.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 output text when accessed directly:
    • > /wp-content/plugins/good-old-share/uninstall.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/good-old-share/good-old-share.php:765

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Requires at least: Invalid version format
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots require images: #1 (Sample content, activating the Facebook Share and Twitter buttons), #2 (Options available in the Settings menu)
You can look at the official readme.txt

good-old-share/good-old-share.php Passed 13 tests

The main file in "Good old Share" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
109 characters long description:
Puts Facebook, Twitter, LinkedIn, Pinterest and other share buttons of your choice above or below your posts.

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 plugin1,375 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP51632251,196
PO File1394295
CSS13684

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.83
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/print.png0.90KB0.97KB0.00%
images/specificfeeds_follow.png0.70KB0.54KB▼ 21.85%
images/facebook-share.png0.82KB1.05KB0.00%
images/email.png1.94KB0.89KB▼ 53.78%
images/rss.png1.01KB1.18KB0.00%