84% social-buttons-floating-share-me

Code Review | Share Me Floating Share Buttons

WordPress plugin Share Me Floating Share Buttons scored 84% from 54 tests.

About plugin

  • Plugin page: social-buttons-fl...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.3
  • WordPress version: 6.3.1
  • First release: May 11, 2016
  • Latest release: Feb 18, 2016
  • Number of updates: 2
  • Update frequency: every 41.5 days
  • Top authors: scottmoses (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 952 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.32ms] Passed 4 tests

This is a short check of server-side resources used by Share Me Floating Share Buttons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.27 ▼1.75
Dashboard /wp-admin3.33 ▲0.0247.19 ▼4.11
Posts /wp-admin/edit.php3.38 ▲0.0248.97 ▲3.85
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.01 ▲4.16
Media Library /wp-admin/upload.php3.25 ▲0.0233.20 ▼3.27

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Share Me Floating Share Buttons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲10713.21 ▼1.541.98 ▲0.0542.93 ▼2.13
Dashboard /wp-admin2,220 ▲325.87 ▲0.9997.73 ▼19.2072.46 ▲27.62
Posts /wp-admin/edit.php2,109 ▲201.98 ▲0.0038.41 ▲0.7834.33 ▲1.81
Add New Post /wp-admin/post-new.php1,539 ▲618.20 ▼4.67750.11 ▲72.9465.79 ▲9.96
Media Library /wp-admin/upload.php1,401 ▲104.20 ▲0.0299.04 ▼0.4770.17 ▲25.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/social-buttons-floating-share-me/share-me-socials-output.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-buttons-floating-share-me/share-me-socials-admin-page.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
5 plugin tags: share buttons, widget, social buttons, social media widget, social media

social-buttons-floating-share-me/share-me-socials-by-cheeky-apps.php 85% from 13 tests

The main PHP file in "Share Me Floating Share Buttons" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 181 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("social-buttons-floating-share-me.php" instead of "share-me-socials-by-cheeky-apps.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 plugin125 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3202486
CSS10139

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions6
▷ Named functions6100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/socials_icons/share-20.png1.23KB0.97KB▼ 20.97%
assets/socials_icons/facebook-sprite.png1.36KB1.06KB▼ 22.12%
assets/socials_icons/google-sprite.png2.62KB1.86KB▼ 29.15%
assets/socials_icons/twitter-sprite.png2.09KB1.66KB▼ 20.47%