Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼4.32ms] Passed 4 tests
This is a short check of server-side resources used by ICIT Weather Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 45.00 ▲1.79 |
Dashboard /wp-admin | 3.50 ▲0.19 | 47.53 ▼5.05 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 48.37 ▲0.61 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 96.04 ▼14.18 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.65 ▲1.34 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_icit_weather_widget |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for ICIT Weather Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.58 ▼0.79 | 1.83 ▼0.55 | 43.38 ▼0.56 |
Dashboard /wp-admin | 2,206 ▲18 | 4.87 ▼0.03 | 106.46 ▼0.60 | 41.99 ▼7.34 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.07 | 38.89 ▲2.68 | 33.75 ▲1.07 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.51 ▲5.23 | 668.26 ▲61.12 | 68.69 ▲21.36 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▼0.02 | 95.26 ▼4.77 | 40.58 ▼3.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_icit_weather_widget
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: weather, widget
interconnect-it-weather-widget/icit-weather-widget.php 85% from 13 tests
The principal PHP file in "ICIT Weather Widget" v. 2.5.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("interconnect-it-weather-widget.php" instead of "icit-weather-widget.php")
- Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,297 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 1,003 |
PHP | 2 | 208 | 116 | 823 |
CSS | 2 | 3 | 1 | 210 |
HTML | 1 | 2 | 2 | 204 |
JavaScript | 2 | 2 | 0 | 34 |
SVG | 1 | 0 | 0 | 23 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 130.00 |
▷ Minimum class complexity | 130.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 10.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.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 | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 77.24KB | 21.83KB | ▼ 71.73% |
screenshot-1.png | 6.60KB | 4.46KB | ▼ 32.46% |
screenshot-2.png | 8.66KB | 5.47KB | ▼ 36.80% |