84% better-kits

Code Review | Better Template Kits

WordPress plugin Better Template Kits scored84%from 54 tests.

About plugin

  • Plugin page: better-kits
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.0
  • WordPress version: 6.3.1
  • First release: Jul 10, 2021
  • Latest release: Jul 17, 2021
  • Number of updates: 10
  • Update frequency: every 0.7 days
  • Top authors: smartinnovates (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /486 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.20MB] [CPU: ▼7.33ms] Passed 4 tests

Server-side resources used by Better Template Kits
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1841.53 ▼1.15
Dashboard /wp-admin3.55 ▲0.2450.75 ▼3.02
Posts /wp-admin/edit.php3.60 ▲0.2449.87 ▼3.32
Add New Post /wp-admin/post-new.php6.08 ▲0.1986.59 ▼21.83
Media Library /wp-admin/upload.php3.41 ▲0.1839.56 ▲5.27

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Better Template Kits
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.73 ▲0.502.23 ▲0.7343.65 ▲4.01
Dashboard /wp-admin2,207 ▲305.51 ▼0.1382.51 ▼7.2543.08 ▼4.27
Posts /wp-admin/edit.php2,112 ▲122.02 ▲0.0236.38 ▲1.2036.28 ▲2.87
Add New Post /wp-admin/post-new.php1,540 ▲1223.20 ▲0.16670.13 ▼28.1055.25 ▼4.35
Media Library /wp-admin/upload.php1,415 ▲184.09 ▼0.06109.80 ▲14.0846.93 ▼2.28

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

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

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Better_Kits_Module_Abstract' not found in wp-content/plugins/better-kits/classes/class-better-kits-module.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/better-kits/classes/templates/builder-fullwidth.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/better-kits/classes/views/templates-page-tpl.php:14

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 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
3 plugin tags: elementor, template, elementor widget

better-kits/better-kits.php Passed 13 tests

The primary PHP file in "Better Template Kits" version 1.0.3 is used by WordPress to initiate all plugin functionality
112 characters long description:
Better Kits is an Elementor templates library and allows you to select from over 100s of designs to choose from.

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
There were no executable files found in this plugin2,345 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP122495801,083
CSS21240851
JavaScript25120411

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.45
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes00.00%
Methods72
▷ Static methods56.94%
▷ Public methods6387.50%
▷ Protected methods56.94%
▷ Private methods45.56%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin