Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.98ms] Passed 4 tests
Analyzing server-side resources used by گرویتی فرم فارسی
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.68 ▼0.58 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.92 ▲2.90 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 44.33 ▼7.29 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 86.01 ▼16.88 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.60 ▼7.18 |
Server storage [IO: ▲2.79MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
گرویتی فرم فارسی: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.32 ▼0.88 | 4.81 ▲3.16 | 44.61 ▲2.13 |
Dashboard /wp-admin | 2,215 ▲27 | 4.86 ▼0.99 | 98.85 ▲0.23 | 41.33 ▼5.68 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.01 ▲0.03 | 35.60 ▲0.96 | 36.38 ▲4.12 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.35 ▲0.19 | 681.58 ▲12.73 | 55.66 ▼5.67 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.29 ▲0.09 | 96.72 ▼9.62 | 43.45 ▼4.77 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: gravityforms, iran
persian-gravity-forms/index.php 92% from 13 tests
The main file in "گرویتی فرم فارسی" v. 2.7.7.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("persian-gravity-forms.php" instead of "index.php")
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
There were no executable files found in this plugin26,347 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 1,875 | 5,081 | 14,780 |
PO File | 3 | 2,733 | 3,102 | 6,960 |
JavaScript | 7 | 79 | 10 | 4,450 |
CSS | 6 | 31 | 0 | 157 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 72.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 389.00 |
Average method complexity | 7.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 43 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 445 | |
▷ Static methods | 24 | 5.39% |
▷ Public methods | 439 | 98.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 1.35% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.14MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/Gravity_Forms_fa.png | 138.41KB | 35.47KB | ▼ 74.37% |
assets/images/logo.png | 3.03KB | 1.62KB | ▼ 46.58% |