10% kntnts-bb-any-term

Code Review | Kntnt's Any Term for Beaver Builder Page Builder

WordPress plugin Kntnt's Any Term for Beaver Builder Page Builder scored10%from 54 tests.

About plugin

  • Plugin page: kntnts-bb-any-term
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Nov 13, 2017
  • Latest release: Apr 12, 2018
  • Number of updates: 15
  • Update frequency: every 10.0 days
  • Top authors: TBarregren (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,013 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/kntnts-bb-any-term/kntnt-bb-any-term.php+48
    Use of undefined constant FL_BUILDER_VERSION - assumed 'FL_BUILDER_VERSION' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.92MB] [CPU: ▼56.90ms] Passed 4 tests

Server-side resources used by Kntnt's Any Term for Beaver Builder Page Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.01 ▼37.45
Dashboard /wp-admin2.09 ▼1.217.20 ▼44.19
Posts /wp-admin/edit.php2.09 ▼1.269.22 ▼46.88
Add New Post /wp-admin/post-new.php2.09 ▼3.808.06 ▼99.09
Media Library /wp-admin/upload.php2.09 ▼1.147.06 ▼35.91

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Kntnt's Any Term for Beaver Builder Page Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.72 ▲0.341.71 ▼0.4939.61 ▼4.82
Dashboard /wp-admin2,195 ▲185.63 ▲0.0290.01 ▼4.9341.45 ▼2.76
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0239.76 ▼1.6336.63 ▼0.43
Add New Post /wp-admin/post-new.php1,526 ▼022.99 ▼0.05657.71 ▼35.8450.60 ▼12.89
Media Library /wp-admin/upload.php1,397 ▼04.21 ▲0.0898.29 ▼18.4643.18 ▼5.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/kntnts-bb-any-term/kntnt-bb-any-term.php+48
    Use of undefined constant FL_BUILDER_VERSION - assumed 'FL_BUILDER_VERSION' (this will throw an Error in a future version of PHP)
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • category_children
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
5 plugin tags: related posts, category, beaver builder, tags, taxonomy

kntnts-bb-any-term/kntnt-bb-any-term.php 77% from 13 tests

The entry point to "Kntnt's Any Term for Beaver Builder Page Builder" version 1.0.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("kntnts-bb-any-term.php" instead of "kntnt-bb-any-term.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: The description should be shorter than 140 characters (currently 395 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected92 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3283592

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected