Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/persian-quote-of-the-day-by-sokhanak/includes/class-widget.php+141
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.83MB] [CPU: ▼58.53ms] Passed 4 tests
A check of server-side resources used by Persian Quote of the Day by Sokhanak
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 5.00 ▼35.39 |
Dashboard /wp-admin | 2.18 ▼1.16 | 5.47 ▼57.56 |
Posts /wp-admin/edit.php | 2.18 ▼1.17 | 6.29 ▼42.85 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.70 | 6.26 ▼98.31 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 7.35 ▼31.40 |
Server storage [IO: ▲0.06MB] [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: 23 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_sokhanak_random_widget |
widget_sokhanak_today_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Persian Quote of the Day by Sokhanak
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.40 ▼0.96 | 8.30 ▲6.07 | 39.90 ▼4.56 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.02 | 94.03 ▼2.91 | 37.73 ▼6.73 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.04 | 36.06 ▼2.47 | 36.16 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.35 ▲0.18 | 677.66 ▲34.33 | 55.35 ▼2.52 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.20 ▼0.02 | 105.27 ▼0.68 | 43.42 ▼0.72 |
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
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/persian-quote-of-the-day-by-sokhanak/includes/class-widget.php+141
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- db_upgraded
- widget_sokhanak_today_widget
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_sokhanak_random_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/persian-quote-of-the-day-by-sokhanak/admin/partials/sokhanak-admin-display.php
- > /wp-content/plugins/persian-quote-of-the-day-by-sokhanak/public/partials/sokhanak-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/persian-quote-of-the-day-by-sokhanak/includes/class-widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
- Screenshots: Add a description for screenshot #2 in persian-quote-of-the-day-by-sokhanak/assets to your readme.txt
persian-quote-of-the-day-by-sokhanak/sokhanak.php 85% from 13 tests
The main PHP script in "Persian Quote of the Day by Sokhanak" version 1.3 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("persian-quote-of-the-day-by-sokhanak.php" instead of "sokhanak.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin568 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 199 | 559 | 562 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 3 | 6.52% |
▷ Public methods | 41 | 89.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.87% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin