90% bs4wp-component

Code Review | BS4WP Component

WordPress plugin BS4WP Component scored 90% from 54 tests.

About plugin

  • Plugin page: bs4wp-component
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 6.3.1
  • First release: Apr 13, 2020
  • Latest release: Dec 11, 2020
  • Number of updates: 14
  • Update frequency: every 17.3 days
  • Top authors: Hakik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 541 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.18ms] Passed 4 tests

Analyzing server-side resources used by BS4WP Component
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.91 ▼5.58
Dashboard /wp-admin3.32 ▲0.0244.03 ▼3.81
Posts /wp-admin/edit.php3.37 ▲0.0147.90 ▲1.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.46 ▼16.09
Media Library /wp-admin/upload.php3.24 ▲0.0135.76 ▲0.78

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

BS4WP Component: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4513.68 ▼0.751.61 ▼0.1439.48 ▲1.58
Dashboard /wp-admin2,203 ▲125.83 ▲0.7498.53 ▼5.8639.55 ▼4.34
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0235.01 ▼5.6931.87 ▼4.99
Add New Post /wp-admin/post-new.php1,546 ▲1323.47 ▲0.22673.49 ▼1.8356.50 ▲6.56
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0094.79 ▼11.8641.16 ▼4.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: custom css, bootstrap slider, bootstrap4 carousel, carousel, slider...

bs4wp-component/bs4wp-component.php Passed 13 tests

The entry point to "BS4WP Component" version 1.1 is a PHP file that has certain tags in its header comment area
38 characters long description:
Boostrap 4 Component Shortcode Plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected169 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP23654167
CSS2071
JavaScript1061

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin