90% bootstrap-carousel-rg

Code Review | Bootstrap Carousel RG

WordPress plugin Bootstrap Carousel RG scored90%from 54 tests.

About plugin

  • Plugin page: bootstrap-carouse...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 13, 2015
  • Latest release: Jul 13, 2015
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: kasigi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /920 total downloads

Benchmarks

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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.41ms] Passed 4 tests

A check of server-side resources used by Bootstrap Carousel RG
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.23 ▲7.30
Dashboard /wp-admin3.31 ▲0.0049.28 ▼9.74
Posts /wp-admin/edit.php3.36 ▲0.0048.01 ▼5.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.82 ▼29.39
Media Library /wp-admin/upload.php3.23 ▲0.0039.29 ▲2.58

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
bootstrapcarouselrg_version
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Bootstrap Carousel RG
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.011.74 ▲0.2343.12 ▲0.45
Dashboard /wp-admin2,192 ▲155.57 ▼0.0387.96 ▼0.5835.40 ▼4.25
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0335.87 ▼2.4933.23 ▼2.92
Add New Post /wp-admin/post-new.php1,535 ▼218.10 ▲0.03595.24 ▼75.0171.63 ▼12.21
Media Library /wp-admin/upload.php1,394 ▼34.35 ▲0.1394.88 ▼5.6841.42 ▼1.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • bootstrapcarouselrg_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: carousel, bootstrap, slider, slideshow

bootstrap-carousel-rg/bootstrap-carousel-rg.php Passed 13 tests

"Bootstrap Carousel RG" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
Configurable carousel content types that render with the bootstrap carousel

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin730 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4136122730

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin