79% easy-social-bookmark

Code Review | Easy social bookmark

WordPress plugin Easy social bookmark scored79%from 54 tests.

About plugin

  • Plugin page: easy-social-bookmark
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.0
  • WordPress version: 6.3.1
  • First release: Feb 7, 2017
  • Latest release: Feb 7, 2017
  • Number of updates: 16
  • Update frequency: every 4.0 days
  • Top authors: ifourkuldeep1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /531 total downloads

Benchmarks

Plugin footprint 65% 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.04MB] [CPU: ▼9.93ms] Passed 4 tests

This is a short check of server-side resources used by Easy social bookmark
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.63 ▼2.87
Dashboard /wp-admin3.36 ▲0.0151.76 ▼18.44
Posts /wp-admin/edit.php3.41 ▲0.0548.34 ▲1.51
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.29 ▼19.93
Media Library /wp-admin/upload.php3.28 ▲0.0540.37 ▲3.01

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Easy social bookmark
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲7814.25 ▼0.132.00 ▲0.3440.81 ▲3.45
Dashboard /wp-admin2,213 ▲365.56 ▼0.0382.90 ▼22.0967.22 ▲19.67
Posts /wp-admin/edit.php2,115 ▲122.00 ▲0.0539.29 ▲0.4540.88 ▲7.23
Add New Post /wp-admin/post-new.php1,692 ▲16422.24 ▼0.86702.03 ▲12.4555.91 ▼8.99
Media Library /wp-admin/upload.php1,412 ▲154.11 ▲0.00100.41 ▼15.7371.44 ▲22.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Easy_social_bookmark::esb_deactivation_hook() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Front-end of easy social bookmark)
You can look at the official readme.txt

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

Analyzing the main PHP file in "Easy social bookmark" version 1.0
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 412 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin758 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS110486
PHP12570170
JavaScript1230102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
6 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png3.78KB1.61KB▼ 57.53%
assets/screenshot-2.png20.92KB8.68KB▼ 58.53%
assets/icon-256x256.png23.63KB10.14KB▼ 57.07%
assets/icon-16x16.png0.67KB0.81KB0.00%
assets/icon-128x128.png8.81KB4.53KB▼ 48.58%