84% um-bootstrap-carousels

Code Review | UM Bootstrap Carousels

WordPress plugin UM Bootstrap Carousels scored 84% from 54 tests.

About plugin

  • Plugin page: um-bootstrap-caro...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.2.2
  • WordPress version: 6.3.1
  • First release: May 19, 2019
  • Latest release: Aug 9, 2019
  • Number of updates: 8
  • Update frequency: every 11.1 days
  • Top authors: angstypoo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 588 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.47ms] Passed 4 tests

This is a short check of server-side resources used by UM Bootstrap Carousels
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.64 ▼2.65
Dashboard /wp-admin3.33 ▲0.0360.26 ▲9.01
Posts /wp-admin/edit.php3.38 ▲0.0354.04 ▲0.05
Add New Post /wp-admin/post-new.php5.91 ▲0.03101.99 ▲5.23
Media Library /wp-admin/upload.php3.26 ▲0.0339.48 ▼0.76

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
um-bootstrap-carousels
widget_recent-comments
db_upgraded
um-bootstrap-carousels-notices
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
um-bootstrap-carousels-settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for UM Bootstrap Carousels
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲5214.48 ▲0.861.57 ▼0.3342.33 ▼5.30
Dashboard /wp-admin2,247 ▲415.89 ▲1.03110.02 ▼1.9144.61 ▲6.11
Posts /wp-admin/edit.php2,134 ▲422.02 ▼0.0240.42 ▼3.7034.13 ▼1.75
Add New Post /wp-admin/post-new.php1,548 ▲1523.10 ▼0.27714.25 ▲9.8066.96 ▲11.60
Media Library /wp-admin/upload.php1,433 ▲454.23 ▲0.13102.92 ▼13.2744.64 ▼5.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/um-bootstrap-carousels/admin/display/um-bootstrap-carousel-admin-display.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: image carousel, image slider, images, bootstrap 4, slider...

um-bootstrap-carousels/um-bootstrap-carousels.php Passed 13 tests

The main PHP file in "UM Bootstrap Carousels" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
39 characters long description:
Create and Manage Bootstrap 4 Carousels

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,274 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP8222303889
JavaScript47684222
CSS328163

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.23
Average class complexity16.00
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods36
▷ Static methods25.56%
▷ Public methods3083.33%
▷ Protected methods00.00%
▷ Private methods616.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/display/images/no-image.png4.81KB2.08KB▼ 56.77%