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
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.29ms] Passed 4 tests
Server-side resources used by WP-Parsi Iran weather
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.74 ▼34.28 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.66 ▼40.83 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.56 ▼38.40 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.81 ▼87.63 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.83 ▼25.21 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_postsfromcat-widget |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP-Parsi Iran weather
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲186 | 13.58 ▼0.78 | 7.98 ▲6.26 | 39.19 ▼4.78 |
Dashboard /wp-admin | 2,208 ▲23 | 4.86 ▼0.95 | 110.32 ▲4.17 | 36.17 ▼5.41 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.03 ▲0.01 | 40.22 ▲4.73 | 34.93 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,533 ▲3 | 23.10 ▲4.91 | 585.04 ▼24.19 | 49.39 ▼8.66 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.28 ▲0.10 | 102.02 ▲7.26 | 43.14 ▲1.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_postsfromcat-widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-parsi-iran-weather/includes/cities.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-parsi-iran-weather/wp-parsi-iran-weather.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (Weather widget in Persian and English)
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
wp-parsi-iran-weather/wp-parsi-iran-weather.php Passed 13 tests
The entry point to "WP-Parsi Iran weather" version 1.9 is a PHP file that has certain tags in its header comment area
98 characters long description:
Get accurate and beautiful weather forecasts for Iran cities powered by weather.com for your site.
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
Everything looks great! No dangerous files found in this plugin4,471 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 398 | 325 | 2,790 |
PO File | 1 | 799 | 838 | 1,611 |
CSS | 1 | 0 | 0 | 57 |
JavaScript | 1 | 1 | 0 | 13 |
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.27 |
Average class complexity | 151.00 |
▷ Minimum class complexity | 66.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 5.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 1 | 1.04% |
▷ Public methods | 81 | 84.38% |
▷ Protected methods | 15 | 15.62% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 22 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 60.85KB | 25.90KB | ▼ 57.43% |