78% advanced-bootstrap-carousel

Code Review | Advanced Bootstrap Carousel

WordPress plugin Advanced Bootstrap Carousel scored78%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: 6.3.1
  • 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

500+ active /13,950 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼2.21ms] 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.58 ▲0.1236.00 ▼5.67
Dashboard /wp-admin3.44 ▲0.1445.87 ▼1.68
Posts /wp-admin/edit.php3.56 ▲0.2049.05 ▲2.55
Add New Post /wp-admin/post-new.php6.02 ▲0.1487.64 ▼1.88
Media Library /wp-admin/upload.php3.37 ▲0.1436.70 ▲0.38
Add New Carousel /wp-admin/post-new.php?post_type=twabc3.4553.95
Settings /wp-admin/edit.php?post_type=twabc&page=twabc-settings3.3133.75
Categories /wp-admin/edit-tags.php?taxonomy=twabc_category&post_type=twabc3.3633.30
All Carousels /wp-admin/edit.php?post_type=twabc3.4136.32

Server storage [IO: ▲0.04MB] [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: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
twabc_settings
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Bootstrap Carousel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.28 ▼1.114.26 ▲2.3742.33 ▼3.30
Dashboard /wp-admin2,235 ▲475.81 ▲0.93103.61 ▼15.0940.18 ▼3.12
Posts /wp-admin/edit.php2,124 ▲352.04 ▲0.0439.21 ▼1.3035.16 ▲0.34
Add New Post /wp-admin/post-new.php1,543 ▲1017.43 ▼5.61701.08 ▲19.3466.43 ▲10.68
Media Library /wp-admin/upload.php1,426 ▲384.12 ▼0.10101.68 ▼2.1240.95 ▼1.09
Add New Carousel /wp-admin/post-new.php?post_type=twabc1,8073.7461.1233.48
Settings /wp-admin/edit.php?post_type=twabc&page=twabc-settings1,1282.2024.2936.35
Categories /wp-admin/edit-tags.php?taxonomy=twabc_category&post_type=twabc1,3002.1429.3927.79
All Carousels /wp-admin/edit.php?post_type=twabc1,1131.9329.5031.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • twabc_settings

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 6× PHP files trigger server errors 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-3.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 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-4.php:2
    • > 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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: slider, bootstrap carousel, bootstrap fading slider, bootstrap slider, responsive slider...

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

The principal PHP file in "Advanced Bootstrap Carousel" v. 2.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 233 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected872 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP65852656
CSS21623216

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin