10% super-web-share

Code Review | Super Web Share

WordPress plugin Super Web Share scored10%from 54 tests.

About plugin

  • Plugin page: super-web-share
  • Plugin version: 2.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Oct 31, 2018
  • Latest release: Aug 8, 2023
  • Number of updates: 57
  • Update frequency: every 30.6 days
  • Top authors: josevarghese (57.89%)superwebshare (43.86%)

Code review

54 tests

User reviews

22 reviews

Install metrics

1,000+ active /15,079 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Error in wp-content/plugins/super-web-share/admin/class-super-web-share-admin.php+380
    Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/super-web-share/admin/class-super-web-share-admin.php:380
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): superwebshare_activation_redirect()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(720): do_action()

Server metrics [RAM: ▲0.41MB] [CPU: ▼4.32ms] Passed 4 tests

A check of server-side resources used by Super Web Share
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3443.84 ▲2.41
Dashboard /wp-admin3.79 ▲0.4451.50 ▼14.06
Posts /wp-admin/edit.php3.84 ▲0.4853.39 ▼6.50
Add New Post /wp-admin/post-new.php6.31 ▲0.4399.78 ▲5.85
Media Library /wp-admin/upload.php3.65 ▲0.4240.37 ▲0.86
Fallback /wp-admin/admin.php?page=superwebshare-fallback3.6239.27
Status /wp-admin/admin.php?page=superwebshare-status3.6239.94
Appearance /wp-admin/admin.php?page=superwebshare-appearance3.6237.89
Floating Button /wp-admin/admin.php?page=superwebshare3.6239.29
Inline Content /wp-admin/admin.php?page=superwebshare-inline3.6235.17
Support /wp-admin/admin.php?page=superwebshare-support3.6236.50

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options
superwebshare_version
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Super Web Share
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲17013.55 ▼0.622.72 ▲0.7741.58 ▲0.57
Dashboard /wp-admin2,251 ▲635.89 ▼0.02107.83 ▼0.7041.79 ▲3.80
Posts /wp-admin/edit.php2,134 ▲452.02 ▼0.0240.70 ▼3.0635.49 ▼1.04
Add New Post /wp-admin/post-new.php6,291 ▲4,74818.93 ▲0.68914.38 ▲254.4866.26 ▲3.22
Media Library /wp-admin/upload.php1,430 ▲394.21 ▲0.02104.41 ▲0.4145.20 ▲0.95
Fallback /wp-admin/admin.php?page=superwebshare-fallback1,2212.2749.7738.35
Status /wp-admin/admin.php?page=superwebshare-status8401.9826.7424.98
Appearance /wp-admin/admin.php?page=superwebshare-appearance1,2002.5341.9238.04
Floating Button /wp-admin/admin.php?page=superwebshare1,1642.6141.3034.63
Inline Content /wp-admin/admin.php?page=superwebshare-inline1,1372.4541.8434.77
Support /wp-admin/admin.php?page=superwebshare-support9081.9928.9231.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/super-web-share/public/partials/super-web-share-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-web-share/public/class-super-web-share-public.php:165

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 Passed 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
6 plugin tags: native share, social share, share api, share, share button...

super-web-share/super-web-share.php Passed 13 tests

The principal PHP file in "Super Web Share" v. 2.4 is loaded by WordPress automatically on each request
86 characters long description:
Super Web Share helps to quickly add the Native Share option to your WordPress website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,849 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP134629441,797
CSS66310551
JavaScript4311202
PO File176114201
Markdown123072
SVG20126

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2681.25%
▷ Protected methods00.00%
▷ Private methods618.75%
Functions80
▷ Named functions7796.25%
▷ Anonymous functions33.75%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/assets/sws-icons.png3.37KB2.53KB▼ 24.92%