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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼292.11ms] Passed 4 tests
Analyzing server-side resources used by Yatri Tools
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.12 | 51.65 ▲3.58 |
Dashboard /wp-admin | 3.47 ▲0.06 | 33.87 ▲1.28 |
Posts /wp-admin/edit.php | 3.70 ▲0.05 | 38.15 ▲0.83 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 98.42 ▼1,162.24 |
Media Library /wp-admin/upload.php | 3.35 ▲0.04 | 24.02 ▼8.31 |
Server storage [IO: ▲4.69MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 232 new files
Database: no new tables, 3 new options
New WordPress options |
---|
yatri_tools_upload_dir_created |
yatri_tools_plugin_do_activation_redirect |
yatri_tools_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Yatri Tools
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,810 ▲56 | 16.21 ▲0.65 | 6.43 ▼0.40 | 3.02 ▲0.47 |
Dashboard /wp-admin | 2,903 ▲45 | 6.09 ▼0.10 | 115.09 ▼18.86 | 154.20 ▼1.20 |
Posts /wp-admin/edit.php | 2,703 ▲15 | 3.24 ▲0.00 | 62.90 ▼3.11 | 138.92 ▲2.59 |
Add New Post /wp-admin/post-new.php | 1,671 ▼81 | 15.65 ▼5.49 | 426.35 ▼25.07 | 154.82 ▼1.27 |
Media Library /wp-admin/upload.php | 1,713 ▲18 | 5.51 ▼0.03 | 134.66 ▼8.14 | 184.77 ▼8.44 |
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
- Zombie WordPress options detected upon uninstall: 3 options
- yatri_tools_plugin_do_activation_redirect
- yatri_tools_version
- yatri_tools_upload_dir_created
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yatri-tools/includes/cache/class-yatri-tools-customizer-cache.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yatri-tools/includes/customizer/class-yatri-tools-customizer.php:17
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/yatri-tools/includes/customizer/prebuilt-header/prebuilt-header.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/yatri-tools/includes/admin/templates/feedback-form-failed.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yatri-tools/includes/hooks/class-yatri-tools-template-hooks.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/yatri-tools/includes/yatri-tools-demo-data.php:3
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/yatri-tools/includes/cache/sections/customizer-cache.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function Yatri_Tools_Elementor\\add_action() in wp-content/plugins/yatri-tools/includes/elementor/hooks/class-yatri-tools-elementor-hooks.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yatri-tools/includes/admin/class-yatri-tools-admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yatri-tools/includes/class-yatri-tools-ajax.php:8
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: demo import, tools, elementor template library
yatri-tools/yatri-tools.php 92% from 13 tests
This is the main PHP file of "Yatri Tools" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin41,683 lines of code in 182 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 138 | 8,463 | 16,842 | 35,950 |
JavaScript | 17 | 1,316 | 426 | 3,685 |
CSS | 25 | 325 | 17 | 1,821 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 1 | 1 | 0 | 13 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 66.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 70 | |
▷ Abstract classes | 2 | 2.86% |
▷ Concrete classes | 68 | 97.14% |
▷ Final classes | 3 | 4.41% |
Methods | 1,304 | |
▷ Static methods | 189 | 14.49% |
▷ Public methods | 940 | 72.09% |
▷ Protected methods | 33 | 2.53% |
▷ Private methods | 331 | 25.38% |
Functions | 101 | |
▷ Named functions | 99 | 98.02% |
▷ Anonymous functions | 2 | 1.98% |
Constants | 137 | |
▷ Global constants | 112 | 81.75% |
▷ Class constants | 25 | 18.25% |
▷ Public constants | 25 | 100.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
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
includes/elementor/assets/images/yatri-full-logo.png | 9.19KB | 4.96KB | ▼ 46.09% |
includes/elementor/assets/images/yatri-logo.png | 9.28KB | 4.15KB | ▼ 55.26% |
includes/panel/assets/img/logo.png | 8.73KB | 3.75KB | ▼ 57.08% |