84% keon-toolset

Code Review | Keon Toolset

WordPress plugin Keon Toolset scored84%from 54 tests.

About plugin

  • Plugin page: keon-toolset
  • Plugin version: 1.6.2
  • PHP compatiblity: 4.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: May 20, 2020
  • Latest release: Oct 17, 2023
  • Number of updates: 115
  • Update frequency: every 10.8 days
  • Top authors: keonthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20,000+ active /405,641 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.03 ▲0.62
Dashboard /wp-admin3.32 ▼0.0247.87 ▼8.46
Posts /wp-admin/edit.php3.37 ▲0.0245.93 ▲0.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.96 ▼10.27
Media Library /wp-admin/upload.php3.25 ▲0.0234.34 ▼1.84
Demo Import /wp-admin/themes.php?page=advanced-import3.2130.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8014.59 ▲0.241.93 ▼0.3842.93 ▼1.14
Dashboard /wp-admin2,207 ▲335.56 ▲0.0392.44 ▲4.9878.51 ▲38.22
Posts /wp-admin/edit.php2,124 ▲241.99 ▲0.0334.23 ▼0.5235.50 ▼2.47
Add New Post /wp-admin/post-new.php1,704 ▲17322.25 ▼0.92688.59 ▲52.9050.20 ▲0.51
Media Library /wp-admin/upload.php1,430 ▲304.16 ▼0.0298.86 ▼3.3366.80 ▲20.68
Demo Import /wp-admin/themes.php?page=advanced-import8312.1523.2034.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP6992681,325
CSS3210210
JavaScript15523

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 code0.38
Average class complexity85.33
▷ Minimum class complexity1.00
▷ Maximum class complexity234.00
Average method complexity15.06
▷ Minimum method complexity1.00
▷ Maximum method complexity158.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods1794.44%
▷ Protected methods15.56%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/gutener-pro.png80.42KB25.11KB▼ 68.77%
assets/img/bosa-store.png52.15KB18.46KB▼ 64.61%
assets/img/bosa-pro.png103.89KB41.26KB▼ 60.29%