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.01MB] [CPU: ▼5.14ms] Passed 4 tests
An overview of server-side resources used by Keon Toolset
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.03 ▲0.62 |
Dashboard /wp-admin | 3.32 ▼0.02 | 47.87 ▼8.46 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.93 ▲0.02 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 80.96 ▼10.27 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.34 ▼1.84 |
Demo Import /wp-admin/themes.php?page=advanced-import | 3.21 | 30.04 |
Server storage [IO: ▲0.32MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Keon Toolset
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲80 | 14.59 ▲0.24 | 1.93 ▼0.38 | 42.93 ▼1.14 |
Dashboard /wp-admin | 2,207 ▲33 | 5.56 ▲0.03 | 92.44 ▲4.98 | 78.51 ▲38.22 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 1.99 ▲0.03 | 34.23 ▼0.52 | 35.50 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,704 ▲173 | 22.25 ▼0.92 | 688.59 ▲52.90 | 50.20 ▲0.51 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.16 ▼0.02 | 98.86 ▼3.33 | 66.80 ▲20.68 |
Demo Import /wp-admin/themes.php?page=advanced-import | 831 | 2.15 | 23.20 | 34.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/keon-toolset/includes/admin-notices.php:7
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-includes/class-wp-customize-section.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/keon-toolset/includes/upsell.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/keon-toolset/includes/upsell.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function keon_toolset_get_theme_slug() in wp-content/plugins/keon-toolset/includes/theme-check-functions.php:33
- > PHP Warning
include_once(ABSPATHwp-includes/class-wp-customize-section.php): failed to open stream: No such file or directory in wp-content/plugins/keon-toolset/includes/upsell.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/keon-toolset/includes/upsell.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 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: demo data importer, demo data, one click demo import
keon-toolset/keon-toolset.php 92% from 13 tests
"Keon Toolset" version 1.6.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,558 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 99 | 268 | 1,325 |
CSS | 3 | 21 | 0 | 210 |
JavaScript | 1 | 5 | 5 | 23 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 158)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 85.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 234.00 |
Average method complexity | 15.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 158.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 2 | 11.11% |
▷ Public methods | 17 | 94.44% |
▷ Protected methods | 1 | 5.56% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/gutener-pro.png | 80.42KB | 25.11KB | ▼ 68.77% |
assets/img/bosa-store.png | 52.15KB | 18.46KB | ▼ 64.61% |
assets/img/bosa-pro.png | 103.89KB | 41.26KB | ▼ 60.29% |