84% share-to-social-bookmarking

Code Review | Share to Social Bookmarking

WordPress plugin Share to Social Bookmarking scored84%from 54 tests.

About plugin

  • Plugin page: share-to-social-b...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2015
  • Latest release: Jun 2, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: nipoto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,741 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Share to Social Bookmarking
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.13 ▼2.70
Dashboard /wp-admin3.31 ▲0.0155.78 ▲8.07
Posts /wp-admin/edit.php3.37 ▲0.0148.84 ▼2.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.33 ▼0.17
Media Library /wp-admin/upload.php3.24 ▲0.0134.18 ▼6.29

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Share to Social Bookmarking
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.26 ▼0.521.85 ▲0.0544.14 ▼2.78
Dashboard /wp-admin2,198 ▲215.62 ▲0.0291.51 ▼3.1742.52 ▲1.31
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.0240.53 ▲4.1534.34 ▼3.05
Add New Post /wp-admin/post-new.php1,535 ▲918.22 ▼5.34622.70 ▼57.8772.00 ▲8.18
Media Library /wp-admin/upload.php1,403 ▲64.10 ▼0.0099.74 ▼17.7147.74 ▼0.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/share-to-social-bookmarking/index.php:35

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: facebook, social network, donbaler, twitteri, cloob...

share-to-social-bookmarking/index.php 85% from 13 tests

The main PHP script in "Share to Social Bookmarking" version 1.6 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("share-to-social-bookmarking.php" instead of "index.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin28 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15824
CSS1004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/yahoo.png3.75KB1.26KB▼ 66.35%
images/balatariin.png1.38KB1.39KB0.00%
images/linkpad.png1.39KB1.43KB0.00%
images/digg.png3.91KB1.35KB▼ 65.37%
images/cloob.png0.91KB0.95KB0.00%