78% advanced-bootstrap-carousel

Code Review | Advanced Bootstrap Carousel

WordPress plugin Advanced Bootstrap Carousel scored 78% from 54 tests.

About plugin

  • Plugin page: advanced-bootstra...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4
  • WordPress version: 5.9.2
  • First release: Jul 5, 2016
  • Latest release: Apr 3, 2020
  • Number of updates: 29
  • Update frequency: every 47.2 days
  • Top authors: animeshsarakd (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

700+ active / 13,253 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼289.29ms] Passed 4 tests

An overview of server-side resources used by Advanced Bootstrap Carousel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.1854.09 ▲5.49
Dashboard /wp-admin3.55 ▲0.1534.60 ▲1.39
Posts /wp-admin/edit.php3.78 ▲0.1440.43 ▲3.82
Add New Post /wp-admin/post-new.php7.02 ▲0.05101.81 ▼1,154.38
Media Library /wp-admin/upload.php3.43 ▲0.1323.54 ▼7.98
Add New Carousel /wp-admin/post-new.php?post_type=twabc3.7647.80
Categories /wp-admin/edit-tags.php?taxonomy=twabc_category&post_type=twabc3.4325.23
All Carousels /wp-admin/edit.php?post_type=twabc3.5425.06
Settings /wp-admin/edit.php?post_type=twabc&page=twabc-settings3.3825.67

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Bootstrap Carousel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,844 ▲10015.91 ▲0.247.23 ▲1.422.69 ▲0.17
Dashboard /wp-admin2,933 ▲726.16 ▼0.05117.06 ▼13.90153.74 ▼6.59
Posts /wp-admin/edit.php2,738 ▲503.24 ▼0.0063.67 ▲0.86137.83 ▼4.29
Add New Post /wp-admin/post-new.php1,690 ▼8316.25 ▼5.17406.28 ▼31.72153.18 ▼3.59
Media Library /wp-admin/upload.php1,742 ▲445.56 ▲0.07144.57 ▲7.33185.67 ▼7.14
Add New Carousel /wp-admin/post-new.php?post_type=twabc2,4225.4095.44125.89
Categories /wp-admin/edit-tags.php?taxonomy=twabc_category&post_type=twabc1,6692.7658.35109.34
All Carousels /wp-admin/edit.php?post_type=twabc1,4403.1560.41114.06
Settings /wp-admin/edit.php?post_type=twabc&page=twabc-settings1,3932.5056.00146.30

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
  • Zombie WordPress options were found after uninstall: 1 option
    • twabc_settings

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/edit.php?post_type=twabc&page=twabc-settings
    • > Notice in wp-content/plugins/advanced-bootstrap-carousel/twabc-admin-settings.php+317
    Undefined variable: twabc_effect_t
    • > GET request to /wp-admin/edit.php?post_type=twabc&page=twabc-settings
    • > Notice in wp-content/plugins/advanced-bootstrap-carousel/twabc-admin-settings.php+318
    Undefined variable: twabc_effect_c
    • > GET request to /wp-admin/edit.php?post_type=twabc&page=twabc-settings
    • > Notice in wp-content/plugins/advanced-bootstrap-carousel/twabc-admin-settings.php+319
    Undefined variable: twabc_effect_f

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
Almost there! Just fix the following items
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/advanced-bootstrap-carousel/twabc-front-view-4.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/advanced-bootstrap-carousel/advanced-bootstrap-carousel.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/advanced-bootstrap-carousel/twabc-admin-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/advanced-bootstrap-carousel/twabc-front-view.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-bootstrap-carousel/twabc-admin-view.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/advanced-bootstrap-carousel/twabc-front-view-3.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


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
9 plugin tags: responsive slider, bootstrap fading slider, bootstrap vertical slider, bootstrap slider, banner slider...

advanced-bootstrap-carousel/advanced-bootstrap-carousel.php 92% from 13 tests

The main PHP script in "Advanced Bootstrap Carousel" version 2.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 233 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin872 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions12100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected