84% boot-slider

Code Review | Boot Slider

WordPress plugin Boot Slider scored84%from 54 tests.

About plugin

  • Plugin page: boot-slider
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Jun 7, 2017
  • Latest release: Oct 29, 2022
  • Number of updates: 13
  • Update frequency: every 151.6 days
  • Top authors: dipto99 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,558 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.19ms] Passed 4 tests

A check of server-side resources used by Boot Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.56 ▼1.93
Dashboard /wp-admin3.33 ▲0.0350.96 ▼1.58
Posts /wp-admin/edit.php3.38 ▲0.0348.07 ▼4.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.11 ▼5.03
Media Library /wp-admin/upload.php3.26 ▲0.0339.64 ▲2.97
Categories /wp-admin/edit-tags.php?taxonomy=bt-cat&post_type=bt-slider3.3445.11
Add New /wp-admin/post-new.php?post_type=bt-slider3.4054.34
Boot Slider /wp-admin/edit.php?post_type=bt-slider3.3038.53

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Boot Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.31 ▼0.413.59 ▲1.7741.67 ▼1.35
Dashboard /wp-admin2,226 ▲495.64 ▲0.0584.56 ▼7.9540.43 ▼4.96
Posts /wp-admin/edit.php2,131 ▲341.98 ▲0.0141.41 ▲3.1936.84 ▼1.05
Add New Post /wp-admin/post-new.php1,552 ▲1523.56 ▲5.13649.33 ▼9.1253.57 ▼11.30
Media Library /wp-admin/upload.php1,431 ▲344.24 ▼0.07100.59 ▼4.6445.77 ▲2.48
Categories /wp-admin/edit-tags.php?taxonomy=bt-cat&post_type=bt-slider1,3052.1529.1532.88
Add New /wp-admin/post-new.php?post_type=bt-slider2,2927.61176.5168.52
Boot Slider /wp-admin/edit.php?post_type=bt-slider1,1121.9730.0632.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boot-slider/inc/bt_slider_type.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/boot-slider/inc/bt_slider_shortcode.php:32
    • > script 'wp-content/plugins/boot-slider/wp-admin.php' not found or unable to stat

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% 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: placeholder, login-form, color, custom-style, icon

boot-slider/bt-slider.php 92% from 13 tests

Analyzing the main PHP file in "Boot Slider" version 1.0.1
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("boot-slider.php" instead of "bt-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
Good job! No executable or dangerous file extensions detected12,692 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS31,709339,110
JavaScript21,0634953,465
PHP41727117

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin