72% wp-bootstrap-carousel-by-it-pixelz

Code Review | WP Bootstrap Carousel by IT Pixelz

WordPress plugin WP Bootstrap Carousel by IT Pixelz scored72%from 54 tests.

About plugin

  • Plugin page: wp-bootstrap-caro...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Oct 7, 2015
  • Latest release: Apr 12, 2023
  • Number of updates: 4
  • Update frequency: every 687.3 days
  • Top authors: itpixelz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /3,643 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.58ms] Passed 4 tests

Analyzing server-side resources used by WP Bootstrap Carousel by IT Pixelz
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.19 ▲3.80
Dashboard /wp-admin3.35 ▲0.0448.96 ▼0.73
Posts /wp-admin/edit.php3.40 ▲0.0450.16 ▼6.14
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.05 ▼11.24
Media Library /wp-admin/upload.php3.27 ▲0.0439.70 ▲8.89
All Sliders /wp-admin/edit.php?post_type=bootstapcarousel3.3136.20
Add New /wp-admin/post-new.php?post_type=bootstapcarousel3.4252.47
Carousel Settings /wp-admin/options-general.php?page=bootstrap-carousel-settings3.2729.56
Category /wp-admin/edit-tags.php?taxonomy=bootcarouselcat&post_type=bootstapcarousel3.3535.30

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_wpbc_how_boot_carousel_widget
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

WP Bootstrap Carousel by IT Pixelz: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9414.74 ▲0.301.96 ▼0.5246.03 ▲3.09
Dashboard /wp-admin2,244 ▲594.85 ▼0.97103.84 ▼0.9138.85 ▲1.07
Posts /wp-admin/edit.php2,124 ▲352.19 ▲0.2033.40 ▼3.9135.41 ▲2.27
Add New Post /wp-admin/post-new.php1,562 ▲4323.29 ▲0.20667.99 ▲66.7550.69 ▼1.98
Media Library /wp-admin/upload.php1,417 ▲264.22 ▼0.01100.36 ▼3.1045.63 ▼0.91
All Sliders /wp-admin/edit.php?post_type=bootstapcarousel1,0932.0333.6528.64
Add New /wp-admin/post-new.php?post_type=bootstapcarousel2,2827.56170.1063.58
Carousel Settings /wp-admin/options-general.php?page=bootstrap-carousel-settings9742.0621.9031.12
Category /wp-admin/edit-tags.php?taxonomy=bootcarouselcat&post_type=bootstapcarousel1,2942.1326.3429.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_wpbc_how_boot_carousel_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bootstrap-carousel-settings
    • > Notice in wp-content/plugins/wp-bootstrap-carousel-by-it-pixelz/admin-page.php+88
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-bootstrap-carousel-by-it-pixelz/admin-page.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-bootstrap-carousel-by-it-pixelz/wp-bootstrap-carousel-itpixelz.php:24

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=bootstrap-carousel-settings
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=bootstrap-carousel-settings 223 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: bootstrap responsive slider, bootstrap slider, slider, casousel, boostrap carousel...

wp-bootstrap-carousel-by-it-pixelz/wp-bootstrap-carousel-itpixelz.php 92% from 13 tests

The entry point to "WP Bootstrap Carousel by IT Pixelz" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-bootstrap-carousel-by-it-pixelz.php" instead of "wp-bootstrap-carousel-itpixelz.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin323 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26418291
CSS113032

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.31
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrow-right-1.png1.16KB1.40KB0.00%
images/arrow-left-1.png1.14KB1.37KB0.00%