Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/world-weather-wwo/2046-world-weather.php+50
Methods with the same name as their class will not be constructors in a future version of PHP; world_weather_wwo has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼49.14ms] Passed 4 tests
This is a short check of server-side resources used by World weather - WWO
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 9.40 ▼33.84 |
Dashboard /wp-admin | 2.30 ▼1.04 | 10.51 ▼50.64 |
Posts /wp-admin/edit.php | 2.30 ▼1.05 | 10.21 ▼33.40 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.58 | 11.08 ▼78.68 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 9.20 ▼27.78 |
Server storage [IO: ▲5.99MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 408 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_world_weather_wwo |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for World weather - WWO
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.27 ▼0.96 | 1.78 ▼0.65 | 44.49 ▲0.08 |
Dashboard /wp-admin | 2,203 ▲15 | 5.89 ▲0.08 | 106.61 ▼1.02 | 40.90 ▼6.66 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.02 | 39.56 ▲1.92 | 35.40 ▲1.18 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.66 ▼4.64 | 612.78 ▼59.51 | 61.06 ▲7.91 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.25 ▼0.02 | 94.86 ▼4.98 | 41.20 ▼4.26 |
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
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method world_weather_wwo::_init() should not be called statically
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_world_weather_wwo
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI ("")
world-weather-wwo/2046-world-weather.php 92% from 13 tests
This is the main PHP file of "World weather - WWO" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("world-weather-wwo.php" instead of "2046-world-weather.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin383 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 73 | 67 | 311 |
PO File | 1 | 27 | 27 | 72 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 52.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 8.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
398 PNG files occupy 5.93MB with 3.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ICTW/13.png | 28.21KB | 6.60KB | ▼ 76.60% |
images/2046/320-thumb.png | 0.81KB | 0.91KB | 0.00% |
images/ICTW/314.png | 27.20KB | 6.96KB | ▼ 74.41% |
images/ICTW/122-thumb.png | 8.34KB | 2.79KB | ▼ 66.61% |
images/VClouds Weather Icons/2-thumb.png | 13.89KB | 3.92KB | ▼ 71.75% |