99% wp-bootstrap-carousel

Code Review | WP Bootstrap Carousel

WordPress plugin WP Bootstrap Carousel scored 99% from 53 tests.

About plugin

  • Plugin page: wp-bootstrap-caro...
  • Plugin version: 0.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2.2
  • WordPress version: 5.8.1
  • First release: Nov 14, 2012
  • Latest release: May 9, 2015
  • Number of updates: 28
  • Update frequency: every 32.4 days
  • Top authors: donutz (100%)

Code review

53 tests

User reviews

8 reviews

Install metrics

300+ active / 20,480 total downloads

Benchmarks

Plugin footprint Passed 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.05MB] [CPU: ▼258.13ms] Passed 4 tests

Server-side resources used by WP Bootstrap Carousel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1735.48 ▲16.31
Dashboard /wp-admin3.11 ▲0.0642.86 ▼0.90
Posts /wp-admin/edit.php3.16 ▲0.0546.24 ▲0.75
Add New Post /wp-admin/post-new.php5.47 ▲0.0494.39 ▼1,025.92
Media Library /wp-admin/upload.php3.05 ▲0.0532.47 ▼6.43

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WP Bootstrap Carousel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,675 ▲6915.91 ▼0.038.17 ▲0.2147.51 ▼2.25
Dashboard /wp-admin2,933 ▲835.83 ▼0.05141.65 ▲11.70107.94 ▲0.16
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0169.83 ▲1.9887.43 ▼1.03
Add New Post /wp-admin/post-new.php1,880 ▲2717.79 ▼1.16352.68 ▼24.05112.53 ▲6.14
Media Library /wp-admin/upload.php1,775 ▲35.10 ▲0.11153.44 ▲5.29102.31 ▼11.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (carousel) image missing
You can look at the official readme.txt

wp-bootstrap-carousel/wp-bootstrap-carousel.php 85% from 13 tests

The primary PHP file in "WP Bootstrap Carousel" version 0.5.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: Please keep the plugin description shorter than 140 characters (currently 424 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected970 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP3123490414
CSS2413332
JavaScript46530224

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity47.50
▷ Minimum class complexity37.00
▷ Maximum class complexity58.00
Average method complexity5.04
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods313.04%
▷ Public methods2086.96%
▷ Protected methods00.00%
▷ Private methods313.04%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png221.61KB95.95KB▼ 56.70%