84% bs-grid-system

Code Review | Bs grid system & Utilities

WordPress plugin Bs grid system & Utilities scored 84% from 54 tests.

About plugin

  • Plugin page: bs-grid-system
  • Plugin version: 0.4.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0
  • WordPress version: 6.3.1
  • First release: Apr 5, 2022
  • Latest release: Sep 3, 2022
  • Number of updates: 26
  • Update frequency: every 5.8 days
  • Top authors: romanechaiev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 735 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.73ms] Passed 4 tests

This is a short check of server-side resources used by Bs grid system & Utilities
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.72 ▼1.41
Dashboard /wp-admin3.32 ▲0.0248.82 ▲2.13
Posts /wp-admin/edit.php3.37 ▲0.0149.65 ▼2.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.23 ▼19.70
Media Library /wp-admin/upload.php3.24 ▲0.0135.92 ▲0.47

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Bs grid system & Utilities
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.34 ▼1.321.80 ▲0.1242.98 ▼1.27
Dashboard /wp-admin2,206 ▲185.85 ▼0.04106.40 ▲1.4037.77 ▼1.25
Posts /wp-admin/edit.php2,086 ▼62.01 ▲0.0139.81 ▼1.6233.89 ▼1.88
Add New Post /wp-admin/post-new.php6,590 ▲5,07127.91 ▲5.02841.42 ▲246.5436.29 ▼18.42
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0894.09 ▼9.3863.81 ▲19.36

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bs-grid-system/bs-grid-system.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: grid, bootstrap, layout, columns, block

bs-grid-system/bs-grid-system.php Passed 13 tests

"Bs grid system & Utilities" version 0.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
50 characters long description:
Bootstrap grid system for Guttenberg block editor.

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 plugin86 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JSON20067
PHP331315
CSS2002
JavaScript2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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