78% kntnts-row-closer-for-beaver-builder-page-builder

Code Review | Kntnt's Row Closer for Beaver Builder Page Builder

WordPress plugin Kntnt's Row Closer for Beaver Builder Page Builder scored78%from 54 tests.

About plugin

  • Plugin page: kntnts-row-closer...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: Nov 25, 2017
  • Latest release: Nov 25, 2017
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: TBarregren (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /788 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
Installer ran successfully

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

Server-side resources used by Kntnt's Row Closer for Beaver Builder Page Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.0551.25 ▲5.85
Dashboard /wp-admin3.60 ▼0.0352.83 ▼14.92
Posts /wp-admin/edit.php3.72 ▲0.0449.73 ▼3.57
Add New Post /wp-admin/post-new.php6.18 ▲0.0490.11 ▼22.28
Media Library /wp-admin/upload.php3.53 ▲0.0438.53 ▼0.23

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Kntnt's Row Closer for Beaver Builder Page Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.24 ▼0.144.44 ▲2.1048.05 ▲4.29
Dashboard /wp-admin2,195 ▲185.66 ▲0.0587.58 ▼11.8542.16 ▼1.78
Posts /wp-admin/edit.php2,100 ▼02.18 ▲0.1734.80 ▼1.6434.72 ▼2.26
Add New Post /wp-admin/post-new.php1,545 ▲523.47 ▲0.04677.01 ▲31.4362.32 ▲12.06
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.13105.45 ▲1.3244.61 ▼2.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/kntnts-row-closer-for-beaver-builder-page-builder/partials/kntnt-bb-row-closer.js.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: cookie_name in wp-content/plugins/kntnts-row-closer-for-beaver-builder-page-builder/partials/kntnt-bb-row-closer.js.php on line 15
    • > PHP Notice
      Undefined variable: container_selector in wp-content/plugins/kntnts-row-closer-for-beaver-builder-page-builder/partials/kntnt-bb-row-closer.js.php on line 5
    • > PHP Notice
      Undefined variable: container_selector in wp-content/plugins/kntnts-row-closer-for-beaver-builder-page-builder/partials/kntnt-bb-row-closer.js.php on line 16
    • > PHP Notice
      Undefined variable: cookie_name in wp-content/plugins/kntnts-row-closer-for-beaver-builder-page-builder/partials/kntnt-bb-row-closer.js.php on line 8
    • > PHP Notice
      Undefined variable: button_selector in wp-content/plugins/kntnts-row-closer-for-beaver-builder-page-builder/partials/kntnt-bb-row-closer.js.php on line 3
    • > PHP Notice
      Undefined variable: cookie_domain in wp-content/plugins/kntnts-row-closer-for-beaver-builder-page-builder/partials/kntnt-bb-row-closer.js.php on line 10
    • > PHP Notice
      Undefined variable: cookie_expires in wp-content/plugins/kntnts-row-closer-for-beaver-builder-page-builder/partials/kntnt-bb-row-closer.js.php on line 9
    • > PHP Notice
      Undefined variable: close_time in wp-content/plugins/kntnts-row-closer-for-beaver-builder-page-builder/partials/kntnt-bb-row-closer.js.php on line 5

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: beaver builder

kntnts-row-closer-for-beaver-builder-page-builder/kntnt-bb-row-closer.php 77% from 13 tests

"Kntnt's Row Closer for Beaver Builder Page Builder" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("kntnts-row-closer-for-beaver-builder-page-builder.php" instead of "kntnt-bb-row-closer.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 320 characters long)

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
Everything looks great! No dangerous files found in this plugin135 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34143126
JavaScript1006
CSS1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods10
▷ Static methods00.00%
▷ Public methods770.00%
▷ Protected methods00.00%
▷ Private methods330.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin