83% kitpack-for-persian-elementor

Code Review | kitpack for persian elementor

WordPress plugin kitpack for persian elementor scored83%from 54 tests.

About plugin

  • Plugin page: kitpack-for-persi...
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.5.9
  • WordPress version: 6.3.1
  • First release: Nov 23, 2020
  • Latest release: Nov 17, 2023
  • Number of updates: 22
  • Update frequency: every 49.5 days
  • Top authors: kitpack (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /9,312 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▲0.06ms] Passed 4 tests

Analyzing server-side resources used by kitpack for persian elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1935.57 ▼3.83
Dashboard /wp-admin3.49 ▲0.1844.84 ▲0.12
Posts /wp-admin/edit.php3.60 ▲0.2450.34 ▲2.25
Add New Post /wp-admin/post-new.php6.07 ▲0.1894.48 ▲1.69
Media Library /wp-admin/upload.php3.41 ▲0.1833.62 ▲2.82

Server storage [IO: ▲3.24MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 145 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
kpe_option
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for kitpack for persian elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7814.68 ▲0.331.67 ▲0.0937.76 ▼8.20
Dashboard /wp-admin2,242 ▲655.63 ▲0.0090.84 ▼3.4143.55 ▼3.27
Posts /wp-admin/edit.php2,147 ▲441.99 ▲0.0140.44 ▼0.4943.19 ▲7.01
Add New Post /wp-admin/post-new.php1,550 ▲2325.43 ▲2.17621.85 ▲13.7281.59 ▲32.76
Media Library /wp-admin/upload.php1,451 ▲544.21 ▲0.0398.29 ▼2.4743.82 ▲2.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • kpe_option
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Please take a closer look at the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/kitpack-for-persian-elementor/admin/partials/kitpack-lite-admin-display.php
    • > /wp-content/plugins/kitpack-for-persian-elementor/public/partials/kitpack-lite-public-display.php
    • > /wp-content/plugins/kitpack-for-persian-elementor/elementor/partials/kitpack-lite-elementor-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: fa_ir, iran, elementor, iranian, persians...

kitpack-for-persian-elementor/kitpack-lite.php 77% from 13 tests

The main PHP file in "kitpack for persian elementor" ver. 2.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kitpack-for-persian-elementor.php" instead of "kitpack-lite.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 161 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin26,247 lines of code in 118 files:
LanguageFilesBlank linesComment linesLines of code
PO File58,12311,31817,130
PHP932,1091,6477,144
JavaScript5243641,306
Markdown2850379
CSS8519163
SVG30073
JSON21052

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity17.33
▷ Minimum class complexity1.00
▷ Maximum class complexity150.00
Average method complexity5.47
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes67
▷ Abstract classes22.99%
▷ Concrete classes6597.01%
▷ Final classes00.00%
Methods245
▷ Static methods3514.29%
▷ Public methods23997.55%
▷ Protected methods00.00%
▷ Private methods62.45%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/logo-kp.png0.50KB0.28KB▼ 42.60%
admin/framework/assets/images/checkerboard.png2.29KB2.54KB0.00%