84% kahaf-kit

Code Review | Kahaf Kit

WordPress plugin Kahaf Kit scored84%from 54 tests.

About plugin

  • Plugin page: kahaf-kit
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Aug 10, 2020
  • Latest release: Aug 13, 2020
  • Number of updates: 9
  • Update frequency: every 2.3 days
  • Top authors: kitbug (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /823 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.27ms] Passed 4 tests

Analyzing server-side resources used by Kahaf Kit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.85 ▲1.99
Dashboard /wp-admin3.36 ▲0.0248.64 ▼14.92
Posts /wp-admin/edit.php3.48 ▲0.1244.39 ▼5.01
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.18 ▲7.13
Media Library /wp-admin/upload.php3.29 ▲0.0639.01 ▲0.86

Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Kahaf Kit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲15613.89 ▼0.8415.59 ▲13.5744.68 ▲0.72
Dashboard /wp-admin2,209 ▲315.64 ▼0.0787.26 ▼25.3041.47 ▲0.75
Posts /wp-admin/edit.php2,117 ▲172.04 ▲0.0336.98 ▼0.5835.22 ▲2.63
Add New Post /wp-admin/post-new.php1,540 ▲1421.04 ▼2.11682.12 ▼54.9754.69 ▼2.35
Media Library /wp-admin/upload.php1,420 ▲204.18 ▲0.01100.41 ▼13.1650.92 ▲0.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 22× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/kahaf-kit/e-addons/addons-list/about.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/kahaf-kit/e-addons/addons-list/newsletters.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/kahaf-kit/e-addons/addons-list/review.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kahaf-kit/function/kahafkit-scripts.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/kahaf-kit/e-addons/addons-list/map-form.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/kahaf-kit/e-addons/addons-list/services.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/kahaf-kit/e-addons/addons-list/gallery.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/kahaf-kit/e-addons/addons-list/team.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/kahaf-kit/e-addons/addons-list/stat-testominials.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/kahaf-kit/e-addons/addons-list/statistic.php:6

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

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

kahaf-kit/kahaf-kit.php Passed 13 tests

The entry point to "Kahaf Kit" version 1.0.0 is a PHP file that has certain tags in its header comment area
46 characters long description:
The Kahaf Kit is design creator for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected28,376 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
CSS71,86010115,548
JavaScript108853438,131
PHP302082433,293
SVG1131,404

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity5.52
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes14.00%
Methods144
▷ Static methods32.08%
▷ Public methods9767.36%
▷ Protected methods4329.86%
▷ Private methods42.78%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected