84% social-like-box-slider

Code Review | Social Like Box Slider

WordPress plugin Social Like Box Slider scored84%from 54 tests.

About plugin

  • Plugin page: social-like-box-s...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Apr 19, 2019
  • Latest release: Jun 26, 2021
  • Number of updates: 11
  • Update frequency: every 72.7 days
  • Top authors: kamilnowak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,626 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 gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.37ms] Passed 4 tests

This is a short check of server-side resources used by Social Like Box Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.19 ▼1.04
Dashboard /wp-admin3.42 ▲0.1257.03 ▲3.75
Posts /wp-admin/edit.php3.54 ▲0.1846.06 ▼5.54
Add New Post /wp-admin/post-new.php6.01 ▲0.1187.88 ▼15.14
Media Library /wp-admin/upload.php3.35 ▲0.1139.29 ▲0.23
Social Like Box Slider /wp-admin/options-general.php?page=slboxs3.3233.87

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
slboxs_version
slboxs_options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Social Like Box Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,939 ▲1,17828.37 ▲14.02282.69 ▲280.5781.57 ▲29.56
Dashboard /wp-admin2,203 ▲265.64 ▲0.1288.22 ▼0.6738.98 ▲0.63
Posts /wp-admin/edit.php2,108 ▲82.00 ▼0.0335.28 ▼2.3534.75 ▼0.18
Add New Post /wp-admin/post-new.php1,536 ▼123.46 ▼1.10659.71 ▲20.0353.19 ▼16.53
Media Library /wp-admin/upload.php1,405 ▲54.19 ▲0.02100.39 ▼5.9941.63 ▼4.78
Social Like Box Slider /wp-admin/options-general.php?page=slboxs1,0022.0127.9428.55

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
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • slboxs_options
    • slboxs_version
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/social-like-box-slider/social-likebox-slider.php

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: likeslider, social, likebox, facebook, slider

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

The principal PHP file in "Social Like Box Slider" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-like-box-slider.php" instead of "social-likebox-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,726 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
SVG1828181,004
PHP47252349
Sass22731221
CSS265132
JavaScript10020

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity12.00
▷ Minimum class complexity9.00
▷ Maximum class complexity15.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
18 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/facebook-big-trans-right.png2.79KB0.10KB▼ 96.50%
assets/images/twitter-big-trans-right.png0.92KB0.51KB▼ 44.28%
assets/images/facebook-small-trans.png2.76KB0.09KB▼ 96.57%
assets/images/youtube-big-fill-right.png0.81KB0.47KB▼ 41.72%
assets/images/facebook-big-fill-right.png2.80KB0.08KB▼ 96.96%