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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.69 ▲1.23 | 44.76 ▲9.84 |
Dashboard /wp-admin | 4.53 ▲1.23 | 53.34 ▲2.81 |
Posts /wp-admin/edit.php | 4.58 ▲1.23 | 59.27 ▲14.69 |
Add New Post /wp-admin/post-new.php | 7.05 ▲1.16 | 87.97 ▼6.10 |
Media Library /wp-admin/upload.php | 4.39 ▲1.16 | 45.21 ▲13.42 |
Webkima Elements /wp-admin/admin.php?page=webkima-elements | 4.39 | 44.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲74 | 14.69 ▲0.08 | 2.17 ▲0.63 | 5.47 ▼32.95 |
Dashboard /wp-admin | 2,214 ▲40 | 5.58 ▲0.02 | 84.94 ▼5.60 | 83.94 ▲43.37 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.08 ▲0.07 | 34.03 ▼0.81 | 42.15 ▲9.44 |
Add New Post /wp-admin/post-new.php | 1,709 ▲172 | 22.03 ▼2.35 | 678.12 ▲83.73 | 52.01 ▼11.70 |
Media Library /wp-admin/upload.php | 1,422 ▲19 | 4.23 ▲0.01 | 99.62 ▼0.20 | 71.55 ▲28.78 |
Webkima Elements /wp-admin/admin.php?page=webkima-elements | 1,385 | 3.83 | 65.19 | 73.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 84 | 2,386 | 1,224 | 11,434 |
JavaScript | 10 | 223 | 10 | 1,822 |
PO File | 2 | 200 | 269 | 531 |
CSS | 11 | 3 | 0 | 486 |
Markdown | 2 | 85 | 0 | 379 |
Sass | 4 | 53 | 0 | 324 |
SVG | 3 | 0 | 0 | 7 |
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 code | 0.57 |
Average class complexity | 18.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 5.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 2 | 3.08% |
▷ Concrete classes | 63 | 96.92% |
▷ Final classes | 0 | 0.00% |
Methods | 282 | |
▷ Static methods | 79 | 28.01% |
▷ Public methods | 271 | 96.10% |
▷ Protected methods | 7 | 2.48% |
▷ Private methods | 4 | 1.42% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/logo.png | 3.34KB | 3.48KB | 0.00% |
lib/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |