83% soliloquy-lite

Code Review | Slider by Soliloquy - Responsive Image Slider for WordPress

WordPress plugin Slider by Soliloquy - Responsive Image Slider for WordPress scored83%from 54 tests.

About plugin

  • Plugin page: soliloquy-lite
  • Plugin version: 2.7.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 3, 2012
  • Latest release: Nov 15, 2023
  • Number of updates: 239
  • Update frequency: every 17.3 days
  • Top authors: griffinjt (49.37%)n7studios (26.36%)chrisakelley (20.5%)dimensionmedia (4.18%)smub (1.26%)

Code review

54 tests

User reviews

1011 reviews

Install metrics

50,000+ active /2,161,050 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.95MB] [CPU: ▼2.46ms] 75% from 4 tests

Server-side resources used by Slider by Soliloquy - Responsive Image Slider for WordPress
It is recommended to improve the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 529.50ms on /wp-admin/edit.php?post_type=soliloquy&page=soliloquy-lite-addons)
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2834.55 ▼5.54
Dashboard /wp-admin4.47 ▲1.1751.06 ▼0.07
Posts /wp-admin/edit.php4.52 ▲1.1753.54 ▲6.59
Add New Post /wp-admin/post-new.php7.11 ▲1.2290.89 ▼10.82
Media Library /wp-admin/upload.php4.40 ▲1.1739.69 ▲8.87
Add New /wp-admin/post-new.php?post_type=soliloquy4.59368.71
About Us /wp-admin/edit.php?post_type=soliloquy&page=soliloquy-lite-about-us4.40321.62
Settings /wp-admin/edit.php?post_type=soliloquy&page=soliloquy-settings4.3838.52
Addons /wp-admin/edit.php?post_type=soliloquy&page=soliloquy-lite-addons4.41529.50
Soliloquy /wp-admin/edit.php?post_type=soliloquy4.4641.48

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 178 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
soliloquy_upgrade
can_compress_scripts
widget_theysaidso_widget
soliloquy_review
widget_recent-posts
db_upgraded
soliloquy_upgrade_cpts

Browser metrics Passed 4 tests

A check of browser resources used by Slider by Soliloquy - Responsive Image Slider for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8114.23 ▼0.011.79 ▲0.0440.47 ▼5.06
Dashboard /wp-admin2,236 ▲595.66 ▲0.1494.64 ▼3.6666.15 ▲23.27
Posts /wp-admin/edit.php2,156 ▲531.99 ▲0.0338.10 ▲0.2934.96 ▼0.53
Add New Post /wp-admin/post-new.php6,239 ▲4,71326.90 ▲3.62937.87 ▲271.3656.28 ▼1.80
Media Library /wp-admin/upload.php1,456 ▲534.16 ▲0.02100.30 ▼6.3671.77 ▲27.77
Add New /wp-admin/post-new.php?post_type=soliloquy3,22111.44388.64144.27
About Us /wp-admin/edit.php?post_type=soliloquy&page=soliloquy-lite-about-us2,0451.9640.4456.40
Settings /wp-admin/edit.php?post_type=soliloquy&page=soliloquy-settings1,1421.9133.4249.02
Addons /wp-admin/edit.php?post_type=soliloquy&page=soliloquy-lite-addons1,4062.1028.1761.81
Soliloquy /wp-admin/edit.php?post_type=soliloquy1,3782.3336.4348.90

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • can_compress_scripts
    • db_upgraded
    • soliloquy_upgrade
    • widget_recent-comments
    • theysaidso_admin_options
    • soliloquy_upgrade_cpts
    • widget_theysaidso_widget
    • soliloquy_review
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Soliloquy_Lite' not found in wp-content/plugins/soliloquy-lite/includes/admin/partials/notifications.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/soliloquy-lite/includes/admin/partials/footer.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Soliloquy_Common_Admin_Lite' not found in wp-content/plugins/soliloquy-lite/includes/admin/partials/metabox-slider-type.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Soliloquy_Lite' not found in wp-content/plugins/soliloquy-lite/includes/admin/partials/_header.php:10

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can take inspiration from this readme.txt

soliloquy-lite/soliloquy-lite.php 77% from 13 tests

"Slider by Soliloquy - Responsive Image Slider for WordPress" version 2.7.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin16,973 lines of code in 89 files:
LanguageFilesBlank linesComment linesLines of code
Sass16445226,175
PHP221,6522,9215,561
JavaScript371,2351,6235,127
CSS132538109
SVG1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity40.89
▷ Minimum class complexity3.00
▷ Maximum class complexity176.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods228
▷ Static methods229.65%
▷ Public methods228100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
77 compressed PNG files occupy 0.89MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/about/plugin-pushengage.png1.44KB1.44KB0.07%
assets/css/images/modify@2x.png0.46KB0.48KB0.00%
assets/images/about/plugin-charitable.png3.25KB3.34KB0.00%
assets/css/images/delete.png0.22KB0.23KB0.00%
assets/css/images/up.png0.19KB0.28KB0.00%