Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.86ms] Passed 4 tests
An overview of server-side resources used by Kata Plus
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.26 ▼1.84 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.54 ▲4.09 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.83 ▲5.53 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.90 ▼12.49 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.84 ▼1.18 |
Server storage [IO: ▲16.69MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3,798 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Kata Plus
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.16 ▼1.22 | 1.65 ▼0.17 | 41.89 ▼2.46 |
Dashboard /wp-admin | 2,206 ▲15 | 5.81 ▼0.09 | 99.19 ▼2.57 | 39.48 ▼4.16 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▲0.01 | 38.70 ▲4.35 | 36.19 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.20 ▼0.00 | 669.64 ▼29.65 | 58.82 ▲4.04 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.23 ▼0.01 | 95.04 ▼6.15 | 41.12 ▼0.74 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 15× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/kata-plus/includes/meta-box/meta-box-plugin/inc/templates/audio.php
- > /wp-content/plugins/kata-plus/includes/theme-options/plugins/wps-menu-exporter/wps-menu-exporter.php
- > /wp-content/plugins/kata-plus/includes/importer/core/includes/vendor/rmccue/requests/examples/multiple.php
- > /wp-content/plugins/kata-plus/includes/meta-box/meta-box-plugin/inc/templates/media.php
- > /wp-content/plugins/kata-plus/includes/meta-box/meta-box-plugin/inc/templates/upload.php
- > /wp-content/plugins/kata-plus/includes/importer/core/includes/vendor/rmccue/requests/examples/session.php
- > /wp-content/plugins/kata-plus/includes/importer/core/libraries/one-click-demo-import.php
- > /wp-content/plugins/kata-plus/includes/importer/core/includes/vendor/rmccue/requests/bin/create_pear_package.php
- > /wp-content/plugins/kata-plus/includes/meta-box/meta-box-plugin/inc/templates/video.php
- > /wp-content/plugins/kata-plus/includes/importer/core/includes/vendor/rmccue/requests/examples/post.php
- 222× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Field\\Radio' not found in wp-content/plugins/kata-plus/includes/vendors/kirki/packages/kirki-framework/control-palette/src/Field/Palette.php:18
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/kata-plus/includes/meta-box/meta-box-plugin/inc/fields/input.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/kata-plus/includes/vendors/kirki/packages/kirki-framework/module-sections/src/Section_Types/Expanded.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/kata-plus/includes/importer/core/includes/vendor/rmccue/requests/tests/Session.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/kata-plus/includes/importer/core/includes/vendor/rmccue/requests/tests/IDNAEncoder.php:3
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/kata-plus/includes/meta-box/meta-box-plugin/inc/fields/checkbox.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Auth' not found in wp-content/plugins/kata-plus/includes/importer/core/includes/vendor/rmccue/requests/library/Requests/Auth/Basic.php:18
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/kata-plus/includes/importer/core/includes/vendor/rmccue/requests/library/Requests/Exception/HTTP/417.php:13
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/kata-plus/includes/meta-box/meta-box-plugin/inc/fields/key-value.php:11
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/kata-plus/includes/importer/core/includes/vendor/rmccue/requests/library/Requests/Exception/HTTP/414.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: footer builder, elements, header builder, elementor widget, blog builder...
kata-plus/kata-plus.php 92% from 13 tests
Analyzing the main PHP file in "Kata Plus" version 1.2.9
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 320 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin197,872 lines of code in 3,573 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 562 | 10,545 | 29,040 | 75,426 |
CSS | 191 | 7,992 | 896 | 44,763 |
JavaScript | 285 | 5,183 | 6,580 | 32,488 |
JSON | 44 | 0 | 0 | 30,753 |
SVG | 2,464 | 2,051 | 12 | 11,178 |
XML | 11 | 280 | 397 | 2,408 |
Markdown | 12 | 364 | 0 | 813 |
YAML | 1 | 7 | 0 | 27 |
Bourne Shell | 2 | 4 | 0 | 12 |
Python | 1 | 1 | 0 | 4 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 185)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 13.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 376.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 185.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 460 | |
▷ Abstract classes | 9 | 1.96% |
▷ Concrete classes | 451 | 98.04% |
▷ Final classes | 13 | 2.88% |
Methods | 2,805 | |
▷ Static methods | 716 | 25.53% |
▷ Public methods | 2,265 | 80.75% |
▷ Protected methods | 306 | 10.91% |
▷ Private methods | 234 | 8.34% |
Functions | 128 | |
▷ Named functions | 51 | 39.84% |
▷ Anonymous functions | 77 | 60.16% |
Constants | 66 | |
▷ Global constants | 27 | 40.91% |
▷ Class constants | 39 | 59.09% |
▷ Public constants | 39 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
98 PNG files occupy 0.72MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/src/images/admin/plugins/kata-plugin-icon-28.png | 10.75KB | 2.55KB | ▼ 76.27% |
assets/src/images/admin/dashboard/white-check.png | 0.37KB | 0.36KB | ▼ 2.92% |
assets/src/images/admin/plugins/kata-plugin-icon.png | 4.86KB | 5.03KB | 0.00% |
includes/vendors/kirki/assets/images/3cm.png | 0.91KB | 0.25KB | ▼ 72.00% |
assets/src/images/admin/plugins/kata-plugin-icon-23.png | 2.21KB | 1.57KB | ▼ 29.06% |