10% social-bookmark-dyc

Code Review | Social Bookmark

WordPress plugin Social Bookmark scored10%from 54 tests.

About plugin

  • Plugin page: social-bookmark-dyc
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9
  • WordPress version: 6.3.1
  • First release: May 12, 2014
  • Latest release: May 12, 2014
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: dreamyourcareer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,179 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in social_bookmark is deprecated since version 4.3.0! Use __construct() instead.

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.07ms] Passed 4 tests

Analyzing server-side resources used by Social Bookmark
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.39 ▼37.70
Dashboard /wp-admin2.05 ▼1.266.14 ▼39.20
Posts /wp-admin/edit.php2.05 ▼1.317.95 ▼37.72
Add New Post /wp-admin/post-new.php2.05 ▼3.846.93 ▼93.65
Media Library /wp-admin/upload.php2.05 ▼1.186.29 ▼28.12

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Social Bookmark
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14813.63 ▼0.755.21 ▲3.3941.21 ▼1.30
Dashboard /wp-admin2,209 ▲174.89 ▼0.20103.77 ▼8.7740.75 ▼2.88
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0134.14 ▼2.2632.35 ▼2.45
Add New Post /wp-admin/post-new.php1,533 ▼023.21 ▲0.02664.04 ▲70.2764.80 ▲18.36
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.00102.01 ▲5.8246.12 ▲1.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in social_bookmark is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_social_bookmark
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/social-bookmark-dyc/social-bookmark-dyc-info.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_title() in wp-content/plugins/social-bookmark-dyc/print.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-bookmark-dyc/social-bookmark-dyc.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 to be fixed:
  • Contributors: The plugin contributors field is not present
The official readme.txt is a good inspiration

social-bookmark-dyc/social-bookmark-dyc.php 92% from 13 tests

The main file in "Social Bookmark" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (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
There were no executable files found in this plugin680 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3119202459
CSS1423157
JavaScript211064

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity58.00
▷ Minimum class complexity58.00
▷ Maximum class complexity58.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/twitter.png0.51KB0.58KB0.00%
icons/google+.png0.62KB0.69KB0.00%
icons/facebook.png0.35KB0.35KB▼ 0.83%
icons/pinterest.png0.55KB0.63KB0.00%