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: ▲1.43MB] [CPU: ▼1.55ms] Passed 4 tests
Server-side resources used by Persian Date
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.28 ▲2.82 | 47.19 ▲7.20 |
Dashboard /wp-admin | 6.09 ▲2.74 | 55.36 ▼8.03 |
Posts /wp-admin/edit.php | 6.12 ▲2.77 | 60.36 ▲15.45 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 81.19 ▼12.08 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.65 ▲6.72 |
تاریخ شمسی /wp-admin/options-general.php?page=pd-option | 3.30 | 30.62 |
Server storage [IO: ▲1.79MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 178 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Persian Date
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.43 ▼0.16 | 1.72 ▼0.10 | 46.91 ▼1.35 |
Dashboard /wp-admin | 2,210 ▲19 | 5.83 ▲0.93 | 101.03 ▼14.60 | 43.77 ▼3.44 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.04 ▲0.07 | 39.22 ▲3.06 | 38.50 ▲3.17 |
Add New Post /wp-admin/post-new.php | 1,544 ▲1 | 22.89 ▲4.58 | 588.28 ▼55.78 | 53.27 ▲1.39 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.30 ▲0.10 | 95.54 ▼14.29 | 45.20 ▲1.40 |
تاریخ شمسی /wp-admin/options-general.php?page=pd-option | 837 | 2.03 | 26.61 | 56.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/persian-date/vendor/symfony/translation/Resources/bin/translation-status.php
- 71× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Class 'Symfony\\Contracts\\Translation\\TranslatorInterface' not found in wp-content/plugins/persian-date/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php on line 24
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Formatter\\IntlFormatterInterface' not found in wp-content/plugins/persian-date/vendor/symfony/translation/Formatter/IntlFormatter.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/persian-date/vendor/symfony/translation-contracts/Test/TranslatorTest.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\CarbonInterface' not found in wp-content/plugins/persian-date/vendor/nesbot/carbon/src/Carbon/Carbon.php:509
- > PHP Fatal error
Uncaught Error: Interface 'Assert\\AssertionFailedException' not found in wp-content/plugins/persian-date/vendor/beberlei/assert/lib/Assert/InvalidArgumentException.php:17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Translator' not found in wp-content/plugins/persian-date/vendor/nesbot/carbon/src/Carbon/Translator.php:18
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/persian-date/vendor/symfony/translation/Resources/bin/translation-status.php on line 54
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/persian-date/vendor/symfony/translation/Loader/JsonFileLoader.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/persian-date/vendor/symfony/translation/Dumper/YamlFileDumper.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface' not found in wp-content/plugins/persian-date/vendor/symfony/translation/DependencyInjection/TranslationDumperPass.php:21
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: persian date, date, calendar, shamsi, jalali
persian-date/persian-date.php Passed 13 tests
Analyzing the main PHP file in "Persian Date" version 0.1.3
41 characters long description:
تاریخ شمسی برای وردپرس
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin23,370 lines of code in 165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 142 | 4,263 | 17,361 | 18,831 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 9 | 0 | 0 | 845 |
Markdown | 7 | 332 | 0 | 816 |
XML | 2 | 0 | 0 | 61 |
YAML | 2 | 2 | 0 | 14 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 159)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 22.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 296.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 159.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 18 | |
Traits | 20 | |
Classes | 87 | |
▷ Abstract classes | 5 | 5.75% |
▷ Concrete classes | 82 | 94.25% |
▷ Final classes | 2 | 2.44% |
Methods | 1,546 | |
▷ Static methods | 436 | 28.20% |
▷ Public methods | 1,381 | 89.33% |
▷ Protected methods | 91 | 5.89% |
▷ Private methods | 74 | 4.79% |
Functions | 120 | |
▷ Named functions | 55 | 45.83% |
▷ Anonymous functions | 65 | 54.17% |
Constants | 152 | |
▷ Global constants | 5 | 3.29% |
▷ Class constants | 147 | 96.71% |
▷ Public constants | 147 | 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
There are no PNG files in this plugin