Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▼133.70ms] Passed 4 tests
A check of server-side resources used by persian date shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▲0.58 | 43.09 ▲9.15 |
Dashboard /wp-admin | 3.68 ▲0.62 | 52.63 ▲8.31 |
Posts /wp-admin/edit.php | 3.73 ▲0.62 | 53.45 ▲10.02 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.54 | 97.49 ▼559.65 |
Media Library /wp-admin/upload.php | 3.56 ▲0.56 | 40.19 ▲7.41 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for persian date shortcode
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.17 ▲0.69 | 8.97 ▼0.75 | 46.66 ▼5.85 |
Dashboard /wp-admin | 2,972 ▲41 | 5.87 ▼0.08 | 137.74 ▼3.08 | 113.24 ▼7.85 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.68 ▼0.01 | 65.33 ▼3.01 | 99.74 ▲6.13 |
Add New Post /wp-admin/post-new.php | 1,686 ▲188 | 18.36 ▼0.48 | 354.22 ▼22.57 | 104.17 ▼7.60 |
Media Library /wp-admin/upload.php | 1,809 ▲2 | 5.00 ▼0.02 | 157.12 ▼0.59 | 118.48 ▼4.40 |
تاریخ شمسی /wp-admin/options-general.php?page=options-general.php_تاریخ_شمسی | 1,285 | 3.17 | 74.16 | 58.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/persian-date-short-code/persian-date-shortcode.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=options-general.php_تاریخ_شمسی
- > Console-api (warning) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31592 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at apc_init (/wp-content/plugins/persian-date-short-code/admin-page-class/js/Admin_Page_Class.js:49:22)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/persian-date-short-code/admin-page-class/js/Admin_Page_Class.js:20:3)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340)" undefined
- > GET request to /wp-admin/options-general.php?page=options-general.php_تاریخ_شمسی
- > Javascript (severe) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31702 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: farsi, iran, jalali, date, parsi...
persian-date-short-code/persian-date-shortcode.php 92% from 13 tests
"persian date shortcode" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("persian-date-short-code.php" instead of "persian-date-shortcode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,213 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 473 | 1,390 | 2,495 |
CSS | 4 | 176 | 217 | 1,244 |
JavaScript | 3 | 48 | 249 | 474 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 378.00 |
▷ Minimum class complexity | 378.00 |
▷ Maximum class complexity | 378.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 127 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 124 | 97.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.36% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin-page-class/js/FancyCheckbox/images/iphone.png | 4.68KB | 2.68KB | ▼ 42.67% |