83% ultimate-social-share-buttons

Code Review | Ultimate Social Share Buttons

WordPress plugin Ultimate Social Share Buttons scored83%from 54 tests.

About plugin

  • Plugin page: ultimate-social-s...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2023
  • Latest release: Nov 19, 2023
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: hrhabibpro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /13 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
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.55ms] Passed 4 tests

Server-side resources used by Ultimate Social Share Buttons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0842.52 ▲1.04
Dashboard /wp-admin3.38 ▲0.0846.85 ▼3.50
Posts /wp-admin/edit.php3.44 ▲0.0848.05 ▼1.14
Add New Post /wp-admin/post-new.php5.99 ▲0.1093.46 ▼2.59
Media Library /wp-admin/upload.php3.31 ▲0.0836.67 ▲2.16

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Social Share Buttons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6214.16 ▼0.121.75 ▲0.0338.90 ▼5.48
Dashboard /wp-admin2,197 ▲175.62 ▼0.0692.82 ▲3.7583.05 ▲39.35
Posts /wp-admin/edit.php2,120 ▲232.04 ▲0.1035.59 ▼1.9834.56 ▲0.86
Add New Post /wp-admin/post-new.php1,696 ▲16822.35 ▼0.80690.86 ▲51.5557.49 ▼0.59
Media Library /wp-admin/upload.php1,414 ▲144.23 ▲0.05103.12 ▼0.4644.54 ▼2.47

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ultimate-social-share-buttons/views/ssbutton-view.php
    • > /wp-content/plugins/ultimate-social-share-buttons/includes/ssbutton-admin.php
    • > /wp-content/plugins/ultimate-social-share-buttons/ultimate-social-share-buttons.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Screenshots: Screenshot #1 (Screenshot-1.png) image required
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

ultimate-social-share-buttons/ultimate-social-share-buttons.php 92% from 13 tests

"Ultimate Social Share Buttons" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 198 characters long)

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
No dangerous file extensions were detected828 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS2117455
PHP63766367
JavaScript1206

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ssb-messenger.png0.90KB1.01KB0.00%
images/ssb-medium.png0.65KB0.87KB0.00%
images/ssb-twitter.png0.85KB0.77KB▼ 9.68%
images/ssb-instagram.png3.41KB1.95KB▼ 42.91%
images/ssb-whatsapp.png1.87KB1.79KB▼ 4.13%