Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/advanced-iranian-widget/Advanced-Iranian-Widget.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; AdvancedIranianWidget has a deprecated constructor
Server metrics [RAM: ▼1.74MB] [CPU: ▼184.74ms] Passed 4 tests
A check of server-side resources used by Advanced Iranian Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.90 ▼0.94 | 5.32 ▼16.85 |
Dashboard /wp-admin | 1.91 ▼1.15 | 4.13 ▼38.96 |
Posts /wp-admin/edit.php | 1.92 ▼1.20 | 3.65 ▼27.43 |
Add New Post /wp-admin/post-new.php | 1.91 ▼3.53 | 4.01 ▼651.99 |
Media Library /wp-admin/upload.php | 1.91 ▼1.09 | 3.14 ▼20.58 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_advancediranianwidget |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Iranian Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,687 ▲86 | 15.92 ▲0.25 | 6.10 ▼2.28 | 76.27 ▲0.86 |
Dashboard /wp-admin | 2,951 ▲52 | 6.09 ▼0.07 | 116.01 ▼14.34 | 167.40 ▼7.21 |
Posts /wp-admin/edit.php | 2,761 ▲18 | 3.24 ▲0.01 | 62.86 ▼3.45 | 138.38 ▲1.54 |
Add New Post /wp-admin/post-new.php | 3,828 ▲85 | 19.42 ▲0.25 | 435.74 ▲5.48 | 163.83 ▼2.00 |
Media Library /wp-admin/upload.php | 1,773 ▲24 | 5.49 ▼0.06 | 144.76 ▼15.97 | 186.19 ▼12.82 |
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
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/advanced-iranian-widget/Advanced-Iranian-Widget.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; AdvancedIranianWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 1 option in the database
- widget_advancediranianwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 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/advanced-iranian-widget/Advanced-Iranian-Widget.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 21 tag instead of maximum 10
advanced-iranian-widget/Advanced-Iranian-Widget.php 85% from 13 tests
The main PHP script in "Advanced Iranian Widget" version 1.1 is automatically included on every request by WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 207 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-iranian-widget.php" instead of "Advanced-Iranian-Widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin211 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 59 | 154 |
PO File | 1 | 21 | 20 | 57 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
There are no PNG files in this plugin