72% super-share

Code Review | Super Share

WordPress plugin Super Share scored 72% from 54 tests.

About plugin

  • Plugin page: super-share
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.1
  • WordPress version: 5.8.1
  • First release: Nov 29, 2014
  • Latest release: Dec 3, 2014
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: shrinitech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 673 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼141.54ms] Passed 4 tests

A check of server-side resources used by Super Share
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1336.46 ▲11.12
Dashboard /wp-admin3.07 ▲0.0145.23 ▼0.22
Posts /wp-admin/edit.php3.12 ▲0.0147.44 ▲0.61
Add New Post /wp-admin/post-new.php5.43 ▼0.0096.64 ▼557.26
Media Library /wp-admin/upload.php3.01 ▲0.0035.03 ▼9.27
Super Share Settings /wp-admin/options-general.php?page=mb-supershare-settings2.9628.33

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options
mbsupershare_settings

Browser metrics Passed 4 tests

Super Share: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,819 ▲18216.49 ▲1.0310.97 ▲0.9650.66 ▼2.32
Dashboard /wp-admin2,982 ▲485.93 ▲0.01144.62 ▼3.33113.27 ▼18.13
Posts /wp-admin/edit.php2,748 ▲92.69 ▲0.0075.12 ▲3.70105.96 ▲3.91
Add New Post /wp-admin/post-new.php1,516 ▼8821.02 ▲2.15374.03 ▲3.54115.78 ▼8.63
Media Library /wp-admin/upload.php1,819 ▲125.02 ▼0.00155.14 ▼0.33127.05 ▼4.28
Super Share Settings /wp-admin/options-general.php?page=mb-supershare-settings1,3643.3577.6199.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • mbsupershare_settings

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=mb-supershare-settings
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=mb-supershare-settings
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=mb-supershare-settings
    • > Notice in wp-content/plugins/super-share/mb_supershare_options.php+69
    Undefined index: twittervia
    • > GET request to /wp-admin/options-general.php?page=mb-supershare-settings
    • > Notice in wp-content/plugins/super-share/mb_supershare_options.php+76
    Undefined index: showonload
    • > GET request to /wp-admin/options-general.php?page=mb-supershare-settings
    • > Notice in wp-content/plugins/super-share/mb_supershare_options.php+84
    Undefined index: feedburnerid
    • > GET request to /wp-admin/options-general.php?page=mb-supershare-settings
    • > Notice in wp-content/plugins/super-share/mb_supershare_options.php+93
    Undefined index: showbacklink

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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/super-share/feedburner_form.php
    • > /wp-content/plugins/super-share/socialmedia_icons.php
  • 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/super-share/socialmedia_icons.php on line 39
    • > PHP Notice
      Undefined variable: mb_supershare_options in wp-content/plugins/super-share/socialmedia_icons.php on line 57
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/super-share/socialmedia_icons.php on line 57
    • > PHP Notice
      Undefined variable: mb_supershare_options in wp-content/plugins/super-share/feedburner_form.php on line 6
    • > PHP Notice
      Undefined variable: mb_supershare_options in wp-content/plugins/super-share/socialmedia_icons.php on line 39
    • > PHP Notice
      Undefined variable: mb_supershare_options in wp-content/plugins/super-share/socialmedia_icons.php on line 77
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/super-share/super-share.php:13
    • > PHP Notice
      Undefined variable: mb_supershare_options in wp-content/plugins/super-share/socialmedia_icons.php on line 67
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/super-share/feedburner_form.php on line 6
    • > PHP Notice
      Undefined variable: mb_supershare_options in wp-content/plugins/super-share/feedburner_form.php on line 7

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 96% from 29 tests

readme.txt Passed 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
5 plugin tags: wordpress social plugin, social sharing plugin, social sharing buttons, feedburner, subscription

super-share/super-share.php 92% from 13 tests

"Super Share" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 199 characters long)

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
Everything looks great! No dangerous files found in this plugin554 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP55823347
CSS1209202
JavaScript1005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of 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.41
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%
Functions8
▷ Named functions8100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
snacks/facebook.png4.22KB2.65KB▼ 37.25%
snacks/twitter.png4.34KB2.66KB▼ 38.84%
img/struckaxiom.png0.42KB0.34KB▼ 18.14%