10% bootstrap-carousel-2x-post-widget

Code Review | Bootstrap Carousel 2x Post Widget

WordPress plugin Bootstrap Carousel 2x Post Widget scored 10% from 54 tests.

About plugin

  • Plugin page: bootstrap-carouse...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2015
  • Latest release: Jul 7, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: mahabub hasan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,309 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/bootstrap-carousel-2x-post-widget/bdwebteam-carousel-2x-post-widget.php+42
    Function create_function() is deprecated

Server metrics [RAM: ▼1.80MB] [CPU: ▼51.42ms] Passed 4 tests

A check of server-side resources used by Bootstrap Carousel 2x Post Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.285.17 ▼36.38
Dashboard /wp-admin2.20 ▼1.107.71 ▼40.49
Posts /wp-admin/edit.php2.21 ▼1.157.39 ▼42.15
Add New Post /wp-admin/post-new.php2.20 ▼3.688.19 ▼86.66
Media Library /wp-admin/upload.php2.21 ▼1.025.29 ▼32.27

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_bdwebteam-carousel-2x-post-widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Bootstrap Carousel 2x Post Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.23 ▼1.141.73 ▼0.0843.24 ▼3.01
Dashboard /wp-admin2,203 ▲155.84 ▲0.8897.91 ▼10.4646.16 ▲2.85
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0033.98 ▼2.6534.15 ▼0.82
Add New Post /wp-admin/post-new.php1,523 ▼1023.14 ▼0.09639.74 ▼39.2562.60 ▲7.69
Media Library /wp-admin/upload.php1,385 ▼34.19 ▲0.0895.90 ▼19.4540.32 ▼8.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/bootstrap-carousel-2x-post-widget/bdwebteam-carousel-2x-post-widget.php+42
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_bdwebteam-carousel-2x-post-widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (17 tag instead of maximum 10)
The official readme.txt might help

bootstrap-carousel-2x-post-widget/bdwebteam-carousel-2x-post-widget.php 85% from 13 tests

The main file in "Bootstrap Carousel 2x Post Widget" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("bootstrap-carousel-2x-post-widget.php" instead of "bdwebteam-carousel-2x-post-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin564 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP462117414
CSS13014131
PO File13319

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG files were detected