Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-world-weather-online/wp-world-weather-online.php+24
Methods with the same name as their class will not be constructors in a future version of PHP; wp_wwo has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼54.88ms] Passed 4 tests
Server-side resources used by WP World Weather Online
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 4.59 ▼39.39 |
Dashboard /wp-admin | 2.16 ▼1.14 | 5.74 ▼49.02 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 6.63 ▼44.08 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 6.86 ▼87.02 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 6.47 ▼30.76 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_wp_wwo |
Browser metrics Passed 4 tests
A check of browser resources used by WP World Weather Online
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.23 ▼1.41 | 1.74 ▼0.32 | 43.65 ▼0.82 |
Dashboard /wp-admin | 2,203 ▲17 | 4.87 ▼0.07 | 109.91 ▼15.08 | 41.44 ▼4.97 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.01 | 39.71 ▲3.27 | 34.93 ▼5.43 |
Add New Post /wp-admin/post-new.php | 1,524 ▼14 | 23.13 ▲0.06 | 603.51 ▼108.33 | 46.59 ▼36.07 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▲0.02 | 97.32 ▼4.96 | 44.44 ▼1.56 |
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 did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-world-weather-online/wp-world-weather-online.php+24
Methods with the same name as their class will not be constructors in a future version of PHP; wp_wwo has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_wp_wwo
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-world-weather-online/wp-world-weather-online.php on line 11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-world-weather-online/wp-world-weather-online.php on line 11
- > PHP Warning
require_once(ABSPATHWPINC/formatting.php): failed to open stream: No such file or directory in wp-content/plugins/wp-world-weather-online/wp-world-weather-online.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/formatting.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-world-weather-online/wp-world-weather-online.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #0 in wp-world-weather-online/assets to your readme.txt
wp-world-weather-online/wp-world-weather-online.php 92% from 13 tests
"WP World Weather Online" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 351 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin728 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 87 | 0 | 545 |
PHP | 1 | 67 | 33 | 183 |
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.15 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 2.42KB | 1.45KB | ▼ 39.93% |
screenshot-1.png | 22.37KB | 8.83KB | ▼ 60.51% |
screenshot-2.png | 8.38KB | 4.06KB | ▼ 51.60% |