Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > 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.82MB] [CPU: ▼59.25ms] Passed 4 tests
A check of server-side resources used by Advanced Iranian Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 4.78 ▼34.31 |
Dashboard /wp-admin | 2.19 ▼1.11 | 5.94 ▼61.27 |
Posts /wp-admin/edit.php | 2.19 ▼1.16 | 6.29 ▼46.15 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 5.67 ▼95.28 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 5.42 ▼33.17 |
Server storage [IO: ▲0.07MB] [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: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_advancediranianwidget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Iranian Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.34 ▼0.04 | 1.67 ▲0.14 | 40.66 ▼5.22 |
Dashboard /wp-admin | 2,208 ▲28 | 5.64 ▲0.06 | 90.54 ▼1.11 | 41.20 ▲0.77 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 1.97 ▲0.01 | 39.17 ▲3.73 | 40.71 ▲4.78 |
Add New Post /wp-admin/post-new.php | 1,541 ▲3 | 23.04 ▲4.76 | 652.70 ▼29.50 | 55.34 ▼30.96 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.21 ▲0.04 | 104.43 ▲0.77 | 44.31 ▲0.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > 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
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_advancediranianwidget
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Please fix the following items
- 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 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (21 tag instead of maximum 10)
advanced-iranian-widget/Advanced-Iranian-Widget.php 85% from 13 tests
The main PHP file in "Advanced Iranian Widget" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 207 characters long)
- Main file name: Please rename the main PHP file in this plugin to 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 | Executable files are not allowed as they can serve as attack vectors
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
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin