78% kitestudio-core

Code Review | core plugin for kitestudio themes

WordPress plugin core plugin for kitestudio themes scored78%from 54 tests.

About plugin

  • Plugin page: kitestudio-core
  • Plugin version: 2.6.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2020
  • Latest release: Nov 20, 2023
  • Number of updates: 160
  • Update frequency: every 8.2 days
  • Top authors: kitestudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /45,903 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.26 ▼3.76
Dashboard /wp-admin3.31 ▲0.0146.99 ▼2.58
Posts /wp-admin/edit.php3.36 ▲0.0147.29 ▲0.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.49 ▼9.95
Media Library /wp-admin/upload.php3.23 ▲0.0035.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.07 ▼0.281.62 ▼0.0538.05 ▲0.38
Dashboard /wp-admin2,195 ▲185.60 ▲0.0697.31 ▼5.2341.35 ▼0.72
Posts /wp-admin/edit.php2,100 ▲31.94 ▼0.0839.82 ▼0.6736.76 ▼1.23
Add New Post /wp-admin/post-new.php1,528 ▼923.13 ▲0.05605.70 ▲18.1447.23 ▼3.35
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.0196.20 ▼2.9741.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP1364,4616,43732,219
JavaScript10191771,088
CSS4927460
SVG30021

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 code0.36
Average class complexity17.00
▷ Minimum class complexity1.00
▷ Maximum class complexity216.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes87
▷ Abstract classes11.15%
▷ Concrete classes8698.85%
▷ Final classes00.00%
Methods751
▷ Static methods293.86%
▷ Public methods57476.43%
▷ Protected methods16521.97%
▷ Private methods121.60%
Functions85
▷ Named functions7992.94%
▷ Anonymous functions67.06%
Constants11
▷ Global constants1090.91%
▷ Class constants19.09%
▷ Public constants1100.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
FileSize - originalSize - compressedSavings
public/img/portfolio-icon.png1.12KB0.32KB▼ 71.53%
admin/img/knowledge.png11.02KB4.83KB▼ 56.16%
admin/img/forum.png14.86KB6.17KB▼ 58.47%
admin/img/tutorial.png14.20KB6.19KB▼ 56.40%
admin/img/kite-logo.png1.90KB1.80KB▼ 4.89%