84% webkima-elements

Code Review | Webkima Elements

WordPress plugin Webkima Elements scored84%from 54 tests.

About plugin

  • Plugin page: webkima-elements
  • Plugin version: 1.7.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 18, 2022
  • Latest release: Dec 26, 2022
  • Number of updates: 13
  • Update frequency: every 12.4 days
  • Top authors: nabiabdi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,662 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: ▲1.19MB] [CPU: ▲4.99ms] Passed 4 tests

An overview of server-side resources used by Webkima Elements
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.69 ▲1.2344.76 ▲9.84
Dashboard /wp-admin4.53 ▲1.2353.34 ▲2.81
Posts /wp-admin/edit.php4.58 ▲1.2359.27 ▲14.69
Add New Post /wp-admin/post-new.php7.05 ▲1.1687.97 ▼6.10
Media Library /wp-admin/upload.php4.39 ▲1.1645.21 ▲13.42
Webkima Elements /wp-admin/admin.php?page=webkima-elements4.3944.34

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 132 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
webkima_elements
widget_theysaidso_widget

Browser metrics Passed 4 tests

Webkima Elements: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7414.69 ▲0.082.17 ▲0.635.47 ▼32.95
Dashboard /wp-admin2,214 ▲405.58 ▲0.0284.94 ▼5.6083.94 ▲43.37
Posts /wp-admin/edit.php2,134 ▲342.08 ▲0.0734.03 ▼0.8142.15 ▲9.44
Add New Post /wp-admin/post-new.php1,709 ▲17222.03 ▼2.35678.12 ▲83.7352.01 ▼11.70
Media Library /wp-admin/upload.php1,422 ▲194.23 ▲0.0199.62 ▼0.2071.55 ▲28.78
Webkima Elements /wp-admin/admin.php?page=webkima-elements1,3853.8365.1973.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • webkima_elements

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/webkima-elements/src/Elementor/TemplatesManager.php
    • > /wp-content/plugins/webkima-elements/src/Elementor/TemplatesSource.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: farsi, iranian, webkima, persian, parsi...

webkima-elements/webkima-elements.php Passed 13 tests

The main PHP file in "Webkima Elements" ver. 1.7.2 adds more information about the plugin and also serves as the entry point for this plugin
109 characters long description:
A very light plugin for Persianization and installation of Persian fonts on the free and Pro Elementor plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected14,983 lines of code in 116 files:
LanguageFilesBlank linesComment linesLines of code
PHP842,3861,22411,434
JavaScript10223101,822
PO File2200269531
CSS1130486
Markdown2850379
Sass4530324
SVG3007

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity18.32
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity5.01
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes65
▷ Abstract classes23.08%
▷ Concrete classes6396.92%
▷ Final classes00.00%
Methods282
▷ Static methods7928.01%
▷ Public methods27196.10%
▷ Protected methods72.48%
▷ Private methods41.42%
Functions24
▷ Named functions2395.83%
▷ Anonymous functions14.17%
Constants9
▷ Global constants777.78%
▷ Class constants222.22%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icons/logo.png3.34KB3.48KB0.00%
lib/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%