Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-jalali/lib/date.php+96
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.83MB] [CPU: ▼54.47ms] Passed 4 tests
Analyzing server-side resources used by wp-jalali
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.31 | 5.73 ▼39.55 |
Dashboard /wp-admin | 2.18 ▼1.13 | 6.73 ▼44.10 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 6.91 ▼41.23 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 7.51 ▼93.00 |
Media Library /wp-admin/upload.php | 2.18 ▼1.06 | 7.45 ▼23.76 |
About /wp-admin/admin.php?page=ztjalali_help_page | 2.18 | 7.26 |
WP Jalali /wp-admin/admin.php?page=ztjalali_admin_page | 2.18 | 7.67 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
ztjalali_version |
ztjalali_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_ztjalali_calendar |
widget_ztjalali_archive |
Browser metrics Passed 4 tests
An overview of browser requirements for wp-jalali
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.30 ▼0.98 | 4.48 ▲2.78 | 39.90 ▼6.69 |
Dashboard /wp-admin | 2,241 ▲53 | 4.90 ▲0.02 | 108.39 ▲2.12 | 48.70 ▲5.84 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.06 ▲0.05 | 40.41 ▼0.89 | 39.21 ▲4.95 |
Add New Post /wp-admin/post-new.php | 1,549 ▲12 | 23.22 ▼0.04 | 609.33 ▲14.80 | 56.05 ▲6.41 |
Media Library /wp-admin/upload.php | 1,420 ▲38 | 4.28 ▲0.06 | 101.30 ▲4.47 | 44.87 ▲2.65 |
About /wp-admin/admin.php?page=ztjalali_help_page | 1,086 | 1.84 | 29.21 | 128.19 |
WP Jalali /wp-admin/admin.php?page=ztjalali_admin_page | 1,085 | 1.71 | 28.35 | 34.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-jalali/lib/date.php+96
Array and string offset access syntax with curly braces is deprecated
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_theysaidso_widget
- ztjalali_version
- widget_recent-comments
- ztjalali_options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_ztjalali_calendar
- db_upgraded
- widget_ztjalali_archive
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ztjalali_admin_page
- > Deprecated in wp-content/plugins/wp-jalali/lib/date.php+262
Array and string offset access syntax with curly braces is deprecated
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ztjalali_admin_page
- > Deprecated in wp-content/plugins/wp-jalali/lib/date.php+353
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- > GET request to /wp-admin/admin.php?page=ztjalali_help_page
- > Notice in wp-content/plugins/wp-jalali/inc/wp-jalali-help-page.php+199
Undefined variable: tour_cnt
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
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-jalali/inc/wp-jalali-filters.php on line 58
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-jalali/wp-jalali-init.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-jalali/inc/wp-jalali-admin-option.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-jalali/inc/wp-jalali-filters.php on line 74
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-jalali/inc/wp-jalali-filters.php on line 77
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-jalali/inc/wp-jalali-filters.php on line 49
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-jalali/inc/wp-jalali-filters.php on line 62
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-jalali/inc/wp-jalali-filters.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-jalali/inc/wp-jalali-admin.php:7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-jalali/inc/wp-jalali-filters.php on line 52
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (Preview of wp-jalali's Custom Admin Page) image not found
wp-jalali/wp-jalali.php 92% from 13 tests
"wp-jalali" version 5.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin2,788 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 376 | 566 | 2,040 |
JavaScript | 3 | 73 | 45 | 436 |
CSS | 4 | 20 | 29 | 150 |
PO File | 1 | 63 | 146 | 149 |
SVG | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 65 | |
▷ Named functions | 65 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
6 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/zakrot.com.png | 5.06KB | 1.65KB | ▼ 67.40% |
assets/icon-128x128.png | 10.30KB | 3.82KB | ▼ 62.89% |
assets/icon-256x256.png | 13.65KB | 4.67KB | ▼ 65.82% |
screenshot-1.png | 142.92KB | 48.81KB | ▼ 65.85% |
assets/banner-772x250.png | 32.25KB | 12.20KB | ▼ 62.18% |