84% bootstraps-columns-controller

Code Review | Bootstrap's Columns Controller

WordPress plugin Bootstrap's Columns Controller scored84%from 54 tests.

About plugin

  • Plugin page: bootstraps-column...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 31, 2017
  • Latest release: Aug 7, 2017
  • Number of updates: 21
  • Update frequency: every 0.4 days
  • Top authors: veradeveloper (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /4,189 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Bootstrap's Columns Controller
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.71 ▲2.42
Dashboard /wp-admin3.32 ▲0.0145.07 ▼4.32
Posts /wp-admin/edit.php3.37 ▲0.0144.68 ▼3.90
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.49 ▼4.20
Media Library /wp-admin/upload.php3.24 ▲0.0131.91 ▼3.33

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bootstrap's Columns Controller
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.22 ▼1.161.78 ▲0.0938.81 ▼5.99
Dashboard /wp-admin2,210 ▲195.80 ▲0.68102.20 ▼17.1040.22 ▼4.28
Posts /wp-admin/edit.php2,093 ▲72.04 ▲0.0635.50 ▼0.7533.01 ▲1.89
Add New Post /wp-admin/post-new.php1,523 ▲917.43 ▼0.08682.40 ▲1.6460.10 ▲3.91
Media Library /wp-admin/upload.php1,395 ▲74.21 ▲0.0598.77 ▼14.0441.45 ▼10.39

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please 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 plugin_dir_url() in wp-content/plugins/bootstraps-columns-controller/index.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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: The official readme.txt might help

bootstraps-columns-controller/index.php 92% from 13 tests

The primary PHP file in "Bootstrap's Columns Controller" version 1.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bootstraps-columns-controller.php" instead of "index.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
Success! There were no dangerous files found in this plugin509 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript37743300
CSS42313181
PHP19828

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Functions5
▷ Named functions5100.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
There are no PNG files in this plugin