90% all-social-share-button

Code Review | All social share button

WordPress plugin All social share button scored 90% from 54 tests.

About plugin

  • Plugin page: all-social-share-...
  • Plugin version: 1.0.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Oct 4, 2017
  • Latest release: Oct 4, 2017
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: ajaymalhotra15 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 833 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

An overview of server-side resources used by All social share button
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.05 ▼0.62
Dashboard /wp-admin3.31 ▲0.0146.25 ▼4.74
Posts /wp-admin/edit.php3.36 ▲0.0150.73 ▼1.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.10 ▼5.41
Media Library /wp-admin/upload.php3.24 ▲0.0134.37 ▲1.72

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for All social share button
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.61 ▼1.131.70 ▼0.2342.12 ▼6.07
Dashboard /wp-admin2,222 ▲315.84 ▼0.06109.21 ▲8.5540.51 ▼1.55
Posts /wp-admin/edit.php2,105 ▲132.03 ▼0.0439.41 ▼3.4334.74 ▼0.14
Add New Post /wp-admin/post-new.php1,527 ▼1517.86 ▼0.31621.70 ▼19.1460.45 ▲10.54
Media Library /wp-admin/upload.php1,407 ▲194.21 ▲0.0198.32 ▼13.3442.76 ▼6.11

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt might help

all-social-share-button/all-social-share-button.php Passed 13 tests

The main file in "All social share button" v. 1.0.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
It will add all the social share buttons to the 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 detected164 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31732144
CSS10820

PHP code Passed 2 tests

This is a short overview 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.32
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
12 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/fb-sq-bent.png0.80KB0.55KB▼ 30.92%
images/pinterest-sq-bent.png1.13KB0.86KB▼ 24.48%
images/whatsapp-sq-bent.png1.30KB1.02KB▼ 21.40%
images/digg-sq-bent.png0.84KB0.59KB▼ 29.45%
images/gmail-sq-bent.png0.97KB0.72KB▼ 25.48%