84% rocketcloud-social-share

Code Review | Social Share Buttons

WordPress plugin Social Share Buttons scored 84% from 54 tests.

About plugin

  • Plugin page: rocketcloud-socia...
  • Plugin version: 3.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.8.0
  • WordPress version: 6.3.1
  • First release: Nov 23, 2015
  • Latest release: May 30, 2017
  • Number of updates: 125
  • Update frequency: every 4.7 days
  • Top authors: rocketcloudryan (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 2,696 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.69ms] Passed 4 tests

Server-side resources used by Social Share Buttons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.48 ▼6.36
Dashboard /wp-admin3.33 ▲0.0344.62 ▼4.87
Posts /wp-admin/edit.php3.38 ▲0.0346.76 ▲6.57
Add New Post /wp-admin/post-new.php5.93 ▲0.0594.91 ▼3.99
Media Library /wp-admin/upload.php3.26 ▲0.0335.28 ▲0.48
Social Share Buttons /wp-admin/options-general.php?page=rcktcld-social3.2333.96

Server storage [IO: ▲1.15MB] [DB: ▲0.89MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Social Share Buttons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.75 ▼0.682.36 ▲0.5138.68 ▼3.91
Dashboard /wp-admin2,215 ▲805.84 ▲0.30104.61 ▲4.5140.62 ▲5.46
Posts /wp-admin/edit.php2,101 ▲262.06 ▲0.0341.42 ▲1.1334.21 ▼4.71
Add New Post /wp-admin/post-new.php1,520 ▼1117.92 ▼5.38600.28 ▼56.2343.89 ▼1.60
Media Library /wp-admin/upload.php1,403 ▲154.21 ▲0.0395.93 ▼6.7441.71 ▼0.03
Social Share Buttons /wp-admin/options-general.php?page=rcktcld-social1,0521.8626.5626.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rocketcloud-social-share/rcktcld-social.php:373

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: social sharing, social media icon, social media, floating social media, share

rocketcloud-social-share/rcktcld-social.php 92% from 13 tests

Analyzing the main PHP file in "Social Share Buttons" version 3.2.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("rocketcloud-social-share.php" instead of "rcktcld-social.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected5,377 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS317172,402
PHP18043287
JavaScript272117

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin