62% scrolling-social-sharebar

Code Review | scrolling-social-sharebar

WordPress plugin scrolling-social-sharebar scored62%from 54 tests.

About plugin

  • Plugin page: scrolling-social-...
  • Plugin version: 1.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Aug 6, 2011
  • Latest release: Sep 3, 2015
  • Number of updates: 16
  • Update frequency: every 93.4 days
  • Top authors: sudiptomahato (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /35,579 total downloads

Benchmarks

Plugin footprint 65% 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.85MB] [CPU: ▼35.25ms] Passed 4 tests

A check of server-side resources used by scrolling-social-sharebar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0231.29 ▼10.85
Dashboard /wp-admin3.09 ▼0.2125.84 ▼27.48
Posts /wp-admin/edit.php3.09 ▼0.2724.11 ▼27.24
Add New Post /wp-admin/post-new.php3.09 ▼2.8024.66 ▼75.42
Media Library /wp-admin/upload.php3.09 ▼0.1426.23 ▼8.12
Scrolling Social Sharebar /wp-admin/options-general.php?page=scrollsharebar3.0924.42

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for scrolling-social-sharebar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,167 ▲43219.78 ▲5.38233.42 ▲231.6357.33 ▲12.84
Dashboard /wp-admin2,213 ▲224.80 ▼0.0497.92 ▼15.1338.68 ▼8.95
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0136.35 ▲0.7238.43 ▲7.62
Add New Post /wp-admin/post-new.php1,539 ▲523.25 ▼0.01663.63 ▼25.9853.83 ▼3.48
Media Library /wp-admin/upload.php1,395 ▲44.25 ▲0.0698.01 ▼9.4140.18 ▼5.47
Scrolling Social Sharebar /wp-admin/options-general.php?page=scrollsharebar1,2531.8826.2332.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=scrollsharebar
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix 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_action() in wp-content/plugins/scrolling-social-sharebar/scroll-sharebar.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=scrollsharebar
    • > Network (severe)
    https://techxt.com/sharebar_ad.png - Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE.NotSameOrigin
    • > GET request to /wp-admin/options-general.php?page=scrollsharebar
    • > Network (severe)
    https://secure-media-sf2p.facebook.com/ads3/creative/pressroom/jpg/b_1234209334_facebook_logo.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
    • > GET request to /wp-admin/options-general.php?page=scrollsharebar
    • > Network (severe)
    http://a0.twimg.com/a/1303316982/images/twitter_logo_header.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === scrolling-social-sharebar === )
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

scrolling-social-sharebar/scroll-sharebar.php 85% from 13 tests

The principal PHP file in "scrolling-social-sharebar" v. 1.7.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 75 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("scrolling-social-sharebar.php" instead of "scroll-sharebar.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
Success! There were no dangerous files found in this plugin422 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13911422

PHP code Passed 2 tests

This is a short overview 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.48
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected