Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.52MB] [CPU: ▼44.52ms] Passed 4 tests
Analyzing server-side resources used by tMediaa weather plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.46 ▼1.00 | 9.92 ▼30.42 |
Dashboard /wp-admin | 2.48 ▼0.82 | 14.02 ▼35.54 |
Posts /wp-admin/edit.php | 2.48 ▼0.87 | 13.41 ▼35.05 |
Add New Post /wp-admin/post-new.php | 2.48 ▼3.40 | 13.13 ▼77.08 |
Media Library /wp-admin/upload.php | 2.48 ▼0.74 | 11.74 ▼26.54 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_tmediaa_weather_plugin |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by tMediaa weather plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲154 | 13.68 ▼1.00 | 7.04 ▲5.26 | 40.09 ▼21.15 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼1.04 | 109.43 ▼4.45 | 39.04 ▼4.42 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.00 | 39.39 ▲2.61 | 34.87 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.03 ▼5.13 | 613.94 ▼72.52 | 48.69 ▼10.21 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.20 ▼0.02 | 95.77 ▼12.56 | 42.88 ▼0.24 |
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
Please fix the following items
- This plugin cannot be uninstalled
- > 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.
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_tmediaa_weather_plugin
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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 add_action() in wp-content/plugins/tmediaa-weather-plugin/tmediaa_iran_weather.php:514
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
- Screenshots: Please add an image for screenshot #1 (Weather widget in Persian and English)
tmediaa-weather-plugin/tmediaa_iran_weather.php 92% from 13 tests
The main PHP file in "tMediaa weather plugin" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tmediaa-weather-plugin.php" instead of "tmediaa_iran_weather.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,502 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 77 | 56 | 635 |
PO File | 1 | 194 | 194 | 406 |
CSS | 3 | 36 | 0 | 282 |
JavaScript | 2 | 60 | 28 | 179 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 132)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 132.00 |
▷ Minimum class complexity | 132.00 |
▷ Maximum class complexity | 132.00 |
Average method complexity | 44.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 132.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
24 PNG files occupy 0.26MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/48.png | 4.49KB | 2.33KB | ▼ 48.02% |
img/49.png | 8.01KB | 4.60KB | ▼ 42.60% |
img/14.png | 3.64KB | 3.15KB | ▼ 13.69% |
img/32.png | 2.41KB | 1.44KB | ▼ 39.99% |
img/44.png | 2.25KB | 1.44KB | ▼ 35.78% |