83% all-social-share-options

Code Review | All Social Share Options

WordPress plugin All Social Share Options scored83%from 54 tests.

About plugin

  • Plugin page: all-social-share-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Dec 7, 2015
  • Latest release: Dec 7, 2015
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: Codiblog (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,859 total downloads


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.00MB] [CPU: ▼12.05ms] Passed 4 tests

An overview of server-side resources used by All Social Share Options
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0626.92 ▼19.46
Dashboard /wp-admin3.33 ▲0.0347.31 ▼4.84
Posts /wp-admin/edit.php3.38 ▲0.0251.43 ▲1.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.13 ▼23.40
Media Library /wp-admin/upload.php3.25 ▲0.0238.16 ▼0.51

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for All Social Share Options
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲15813.83 ▼0.789.76 ▲8.0741.39 ▼1.88
Dashboard /wp-admin2,209 ▲325.57 ▲0.0490.97 ▲3.1339.64 ▼1.11
Posts /wp-admin/edit.php2,114 ▲142.03 ▲0.0336.52 ▼4.2836.90 ▲0.23
Add New Post /wp-admin/post-new.php1,541 ▲1523.02 ▼0.44680.42 ▲59.8169.63 ▲15.27
Media Library /wp-admin/upload.php1,417 ▲204.22 ▲0.03107.29 ▼0.4847.21 ▲2.32

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-social-share-options/includes/shortcodes/shortcodelist.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/all-social-share-options/includes/shortcodes/shortcodes.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-social-share-options/includes/shortcodes/shortcodelist.php:41

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


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Latest Tweets), #2 (Social Colourful), #3 (Social Plain), #4 (Social List)
You can take inspiration from this readme.txt

all-social-share-options/all-in-one-social.php 92% from 13 tests

The main file in "All Social Share Options" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("all-social-share-options.php" instead of "all-in-one-social.php")

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
Success! There were no dangerous files found in this plugin6,069 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png5.32KB3.28KB▼ 38.40%
screenshot-4.png5.66KB3.39KB▼ 40.06%
screenshot-1.png30.87KB15.22KB▼ 50.71%
screenshot-3.png4.44KB2.97KB▼ 33.27%
images/maria.png90.78KB32.66KB▼ 64.02%