83% wpkmkz-boostrap-grid-widgets

Code Review | WPkmkz Bootstrap Grid Widgets

WordPress plugin WPkmkz Bootstrap Grid Widgets scored83%from 54 tests.

About plugin

  • Plugin page: wpkmkz-boostrap-g...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Feb 14, 2014
  • Latest release: Apr 15, 2014
  • Number of updates: 12
  • Update frequency: every 5.0 days
  • Top authors: skapator (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,528 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.97ms] Passed 4 tests

A check of server-side resources used by WPkmkz Bootstrap Grid Widgets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.0442.85 ▼1.33
Dashboard /wp-admin3.61 ▲0.0449.17 ▼2.83
Posts /wp-admin/edit.php3.72 ▲0.0451.29 ▼2.79
Add New Post /wp-admin/post-new.php6.19 ▲0.0490.76 ▼4.92
Media Library /wp-admin/upload.php3.53 ▲0.0439.98 ▲2.35

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WPkmkz Bootstrap Grid Widgets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.131.66 ▼0.0241.14 ▼1.61
Dashboard /wp-admin2,198 ▲185.65 ▼0.0592.90 ▲2.2239.66 ▼6.54
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0438.92 ▲1.6736.43 ▼2.48
Add New Post /wp-admin/post-new.php1,526 ▼017.82 ▲0.41669.79 ▼43.9359.02 ▼1.17
Media Library /wp-admin/upload.php1,394 ▼34.24 ▲0.0399.89 ▼3.4743.92 ▼4.47

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
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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
The following issues need your attention
  • 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/wpkmkz-boostrap-grid-widgets/wpkmkz-bootstrap-grid-widgets.php:162

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, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === wpkmkz-boostrap-grid-widgets === )
You can take inspiration from this readme.txt

wpkmkz-boostrap-grid-widgets/wpkmkz-bootstrap-grid-widgets.php 77% from 13 tests

The main PHP file in "WPkmkz Bootstrap Grid Widgets" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpkmkz-boostrap-grid-widgets.php" instead of "wpkmkz-bootstrap-grid-widgets.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.6" instead of "3.5.1")

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
There were no executable files found in this plugin203 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21741203

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.23
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%
Functions4
▷ Named functions4100.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
There are no PNG files in this plugin