90% responsive-slider-lite

Code Review | Responsive Slider lite

WordPress plugin Responsive Slider lite scored90%from 54 tests.

About plugin

  • Plugin page: responsive-slider...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.3
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: Oct 31, 2022
  • Number of updates: 16
  • Update frequency: every 146.9 days
  • Top authors: carl-alberto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,249 total downloads

Benchmarks

Plugin footprint 83% 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.16MB] [CPU: ▼4.14ms] Passed 4 tests

Analyzing server-side resources used by Responsive Slider lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1838.77 ▼2.10
Dashboard /wp-admin3.46 ▲0.1646.03 ▼6.96
Posts /wp-admin/edit.php3.58 ▲0.2247.26 ▼2.37
Add New Post /wp-admin/post-new.php6.04 ▲0.1588.32 ▼5.14
Media Library /wp-admin/upload.php3.38 ▲0.1536.31 ▼0.32
All Sliders /wp-admin/edit.php?post_type=responsive_slider_l3.4436.87
Add New Image /wp-admin/post-new.php?post_type=responsive_slider_l3.5850.91
Slider Category /wp-admin/edit-tags.php?taxonomy=responsive_slider_cat&post_type=responsive_slider_l3.3835.19

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Responsive Slider lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲18813.58 ▼0.968.62 ▲6.7946.04 ▲4.13
Dashboard /wp-admin2,239 ▲514.86 ▲0.04107.32 ▲2.1336.14 ▼7.15
Posts /wp-admin/edit.php2,125 ▲362.04 ▲0.0338.96 ▲1.4736.34 ▲2.94
Add New Post /wp-admin/post-new.php1,556 ▲3722.98 ▼0.15608.46 ▼75.3257.17 ▼8.78
Media Library /wp-admin/upload.php1,421 ▲334.18 ▼0.0795.83 ▼7.7543.00 ▼2.81
All Sliders /wp-admin/edit.php?post_type=responsive_slider_l1,1311.9330.7732.00
Add New Image /wp-admin/post-new.php?post_type=responsive_slider_l2,3157.67162.7062.28
Slider Category /wp-admin/edit-tags.php?taxonomy=responsive_slider_cat&post_type=responsive_slider_l1,2922.1427.3527.49

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
9 plugin tags: bootstrap slider, responsive wordpress slider, slider, gallery, responsive slider...

responsive-slider-lite/responsive-slider-lite.php Passed 13 tests

The main file in "Responsive Slider lite" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
51 characters long description:
A lightweight responsive slider utilizing bootstrap

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected9,986 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
CSS79287,360
JavaScript76062631,743
PHP13160634593
SVG100288
Markdown1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods44
▷ Static methods1022.73%
▷ Public methods3886.36%
▷ Protected methods00.00%
▷ Private methods613.64%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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