83% social-like-box

Code Review | Social Like Box

WordPress plugin Social Like Box scored83%from 54 tests.

About plugin

  • Plugin page: social-like-box
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.7.1
  • WordPress version: 6.3.1
  • First release: May 4, 2021
  • Latest release: May 4, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: hasibangg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /356 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Social Like Box
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.09 ▼0.16
Dashboard /wp-admin3.31 ▲0.0145.40 ▼7.78
Posts /wp-admin/edit.php3.36 ▲0.0144.19 ▼5.03
Add New Post /wp-admin/post-new.php5.90 ▲0.01101.09 ▼7.45
Media Library /wp-admin/upload.php3.24 ▲0.0132.90 ▲0.02

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

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

Browser metrics Passed 4 tests

Social Like Box: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9914.41 ▲0.0231.46 ▲29.7338.98 ▼9.15
Dashboard /wp-admin2,206 ▲204.85 ▼0.0899.68 ▼8.5239.93 ▲0.15
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0239.20 ▲2.7132.08 ▲0.33
Add New Post /wp-admin/post-new.php1,546 ▲2718.45 ▼4.93662.82 ▼24.0363.15 ▲12.04
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0398.51 ▼3.2046.33 ▼0.86

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 does not fully uninstall, leaving 7 options in the database
    • widget_slbox_widget
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-like-box/includes/social-like-box-class.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt might help

social-like-box/social-like-box.php 85% from 13 tests

The primary PHP file in "Social Like Box" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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 plugin151 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22748144
JavaScript1007

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin