Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.98ms] Passed 4 tests
Analyzing server-side resources used by core plugin for kitestudio themes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.26 ▼3.76 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.99 ▼2.58 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.29 ▲0.38 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.49 ▼9.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.90 ▲3.23 |
Server storage [IO: ▲1.98MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 163 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for core plugin for kitestudio themes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.07 ▼0.28 | 1.62 ▼0.05 | 38.05 ▲0.38 |
Dashboard /wp-admin | 2,195 ▲18 | 5.60 ▲0.06 | 97.31 ▼5.23 | 41.35 ▼0.72 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.94 ▼0.08 | 39.82 ▼0.67 | 36.76 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,528 ▼9 | 23.13 ▲0.05 | 605.70 ▲18.14 | 47.23 ▼3.35 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▼0.01 | 96.20 ▼2.97 | 41.64 ▼1.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% 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 0% 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
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/kitestudio-core/public/partials/kt-core-public-display.php
- > /wp-content/plugins/kitestudio-core/admin/partials/kt-core-admin-display.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kitestudio-core/includes/elements/shortcodes/woocommerce/ajax-products-tab.php:219
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kitestudio-core/includes/widgets/widget-facebook.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kitestudio-core/includes/widgets/widget-instagram.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kitestudio-core/includes/general-hooks.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kitestudio-core/includes/classes/class-kt-register-widgets.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kitestudio-core/includes/shortcodes.php:30
- > PHP Fatal error
Uncaught Error: Class 'Kite_Core_Loader' not found in wp-content/plugins/kitestudio-core/includes/classes/class-kt-register-post-type.php:207
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget_Recent_Posts' not found in wp-content/plugins/kitestudio-core/includes/widgets/widget-recent-posts.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kitestudio-core/includes/compatibility/compatibility.php:307
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kitestudio-core/includes/widgets/widget-progress.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
kitestudio-core/kitestudio-core.php Passed 13 tests
The main PHP script in "core plugin for kitestudio themes" version 2.6.1 is automatically included on every request by WordPress
91 characters long description:
kitestudio core plugin that adds shortcodes, widgets, post-types, etc. to kitestudio themes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected33,788 lines of code in 153 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 4,461 | 6,437 | 32,219 |
JavaScript | 10 | 191 | 77 | 1,088 |
CSS | 4 | 9 | 27 | 460 |
SVG | 3 | 0 | 0 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 216.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 87 | |
▷ Abstract classes | 1 | 1.15% |
▷ Concrete classes | 86 | 98.85% |
▷ Final classes | 0 | 0.00% |
Methods | 751 | |
▷ Static methods | 29 | 3.86% |
▷ Public methods | 574 | 76.43% |
▷ Protected methods | 165 | 21.97% |
▷ Private methods | 12 | 1.60% |
Functions | 85 | |
▷ Named functions | 79 | 92.94% |
▷ Anonymous functions | 6 | 7.06% |
Constants | 11 | |
▷ Global constants | 10 | 90.91% |
▷ Class constants | 1 | 9.09% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/portfolio-icon.png | 1.12KB | 0.32KB | ▼ 71.53% |
admin/img/knowledge.png | 11.02KB | 4.83KB | ▼ 56.16% |
admin/img/forum.png | 14.86KB | 6.17KB | ▼ 58.47% |
admin/img/tutorial.png | 14.20KB | 6.19KB | ▼ 56.40% |
admin/img/kite-logo.png | 1.90KB | 1.80KB | ▼ 4.89% |