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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 41.53 ▼1.15 |
Dashboard /wp-admin | 3.55 ▲0.24 | 50.75 ▼3.02 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 49.87 ▼3.32 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 86.59 ▼21.83 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.73 ▲0.50 | 2.23 ▲0.73 | 43.65 ▲4.01 |
Dashboard /wp-admin | 2,207 ▲30 | 5.51 ▼0.13 | 82.51 ▼7.25 | 43.08 ▼4.27 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.02 ▲0.02 | 36.38 ▲1.20 | 36.28 ▲2.87 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.20 ▲0.16 | 670.13 ▼28.10 | 55.25 ▼4.35 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.09 ▼0.06 | 109.80 ▲14.08 | 46.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 249 | 580 | 1,083 |
CSS | 2 | 124 | 0 | 851 |
JavaScript | 2 | 51 | 20 | 411 |
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 code | 0.22 |
Average class complexity | 6.45 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 5 | 6.94% |
▷ Public methods | 63 | 87.50% |
▷ Protected methods | 5 | 6.94% |
▷ Private methods | 4 | 5.56% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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