Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.08ms] Passed 4 tests
Server-side resources used by ووکامرس فارسی
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 35.74 ▼3.86 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.34 ▼16.04 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.94 ▲5.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.73 ▼8.39 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.21 ▼4.01 |
Server storage [IO: ▲7.22MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 335 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for ووکامرس فارسی
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.27 ▼0.06 | 1.76 ▲0.12 | 36.83 ▼8.11 |
Dashboard /wp-admin | 2,195 ▲18 | 5.60 ▼0.05 | 89.71 ▼3.11 | 43.60 ▲1.81 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.00 | 39.08 ▼0.36 | 36.90 ▲3.99 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.84 ▼0.30 | 595.70 ▼45.22 | 50.53 ▼8.67 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▲0.01 | 98.23 ▲5.86 | 40.48 ▼0.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 142× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Catalogue\\OperationInterface' not found in wp-content/plugins/persian-woocommerce/vendor/symfony/translation/Catalogue/AbstractOperation.php:27
- > PHP Fatal error
Uncaught Error: Class 'Assert\\InvalidArgumentException' not found in wp-content/plugins/persian-woocommerce/vendor/beberlei/assert/lib/Assert/LazyAssertionException.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Dumper\\DumperInterface' not found in wp-content/plugins/persian-woocommerce/vendor/symfony/translation/Dumper/FileDumper.php:26
- > PHP Fatal error
Trait 'Carbon\\Traits\\ObjectInitialisation' not found in wp-content/plugins/persian-woocommerce/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php on line 38
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/persian-woocommerce/vendor/symfony/translation/Dumper/QtFileDumper.php:21
- > PHP Fatal error
Uncaught Error: Class 'Carbon\\AbstractTranslator' not found in wp-content/plugins/persian-woocommerce/vendor/nesbot/carbon/lazy/Carbon/TranslatorStrongType.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Loader\\LoaderInterface' not found in wp-content/plugins/persian-woocommerce/vendor/symfony/translation/Loader/QtFileLoader.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/persian-woocommerce/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidFormatException.php:16
- > PHP Fatal error
Uncaught Error: Class 'Carbon\\Exceptions\\UnitException' not found in wp-content/plugins/persian-woocommerce/vendor/nesbot/carbon/src/Carbon/Exceptions/BadComparisonUnitException.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/persian-woocommerce/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidIntervalException.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
7 plugin tags: woocommerce, persian, shamsi, farsi, iran...
persian-woocommerce/woocommerce-persian.php 85% from 13 tests
The main PHP script in "ووکامرس فارسی" version 7.1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 390 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("persian-woocommerce.php" instead of "woocommerce-persian.php")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/persian-woocommerce/vendor/bin/carbon.bat
- ☣ wp-content/plugins/persian-woocommerce/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 261 | 7,196 | 22,625 | 34,609 |
PO File | 1 | 9,501 | 17,876 | 20,257 |
JavaScript | 3 | 34 | 51 | 2,809 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 12 | 0 | 0 | 1,322 |
CSS | 2 | 57 | 1 | 307 |
XML | 3 | 5 | 0 | 74 |
YAML | 2 | 15 | 24 | 38 |
Bourne Shell | 1 | 4 | 6 | 12 |
DOS Batch | 2 | 0 | 0 | 9 |
Bourne Again Shell | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 21.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 389.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 29 | |
Traits | 29 | |
Classes | 182 | |
▷ Abstract classes | 17 | 9.34% |
▷ Concrete classes | 165 | 90.66% |
▷ Final classes | 15 | 9.09% |
Methods | 2,216 | |
▷ Static methods | 509 | 22.97% |
▷ Public methods | 1,922 | 86.73% |
▷ Protected methods | 163 | 7.36% |
▷ Private methods | 131 | 5.91% |
Functions | 213 | |
▷ Named functions | 112 | 52.58% |
▷ Anonymous functions | 101 | 47.42% |
Constants | 194 | |
▷ Global constants | 11 | 5.67% |
▷ Class constants | 183 | 94.33% |
▷ Public constants | 180 | 98.36% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/tools.png | 3.15KB | 2.31KB | ▼ 26.68% |
assets/images/logo.png | 1.51KB | 0.82KB | ▼ 45.97% |
assets/images/icons/bank.png | 0.90KB | 0.79KB | ▼ 12.51% |
assets/images/icons/shamsi.png | 0.58KB | 0.42KB | ▼ 27.27% |
assets/images/icons/fanum.png | 1.18KB | 1.25KB | 0.00% |