Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/beautiful-yahoo-weather/inc/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; byw has a deprecated constructor
Server metrics [RAM: ▼1.88MB] [CPU: ▼55.02ms] Passed 4 tests
Server-side resources used by Beautiful Yahoo Weather
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 5.78 ▼37.62 |
Dashboard /wp-admin | 2.12 ▼1.18 | 8.03 ▼43.67 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 8.52 ▼43.30 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 6.83 ▼95.48 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 8.22 ▼29.86 |
Server storage [IO: ▲2.63MB] [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: 372 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_byw |
Browser metrics Passed 4 tests
An overview of browser requirements for Beautiful Yahoo Weather
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲69 | 13.33 ▼1.07 | 4.19 ▲2.41 | 43.88 ▲1.98 |
Dashboard /wp-admin | 2,224 ▲36 | 5.85 ▼0.04 | 98.61 ▼9.96 | 70.21 ▲29.77 |
Posts /wp-admin/edit.php | 2,104 ▲18 | 2.02 ▼0.03 | 35.89 ▲0.38 | 34.67 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,527 ▼6 | 23.16 ▼0.23 | 702.51 ▲12.75 | 49.93 ▼6.98 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.13 ▲0.02 | 111.35 ▼0.91 | 81.68 ▲34.91 |
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
- > Deprecated in wp-content/plugins/beautiful-yahoo-weather/inc/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; byw has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_byw
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/beautiful-yahoo-weather/beautiful-yahoo-weather.php:22
- > PHP Notice
Undefined variable: mylang in wp-content/plugins/beautiful-yahoo-weather/inc/lang.php on line 1482
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/beautiful-yahoo-weather/inc/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/beautiful-yahoo-weather/inc/shortcode.php:103
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautiful-yahoo-weather/inc/options-page.php:2
- > PHP Notice
Undefined variable: smylang in wp-content/plugins/beautiful-yahoo-weather/inc/lang.php on line 2092
- > PHP Fatal error
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 errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: beautiful, yahoo, weather
beautiful-yahoo-weather/beautiful-yahoo-weather.php Passed 13 tests
The primary PHP file in "Beautiful Yahoo Weather" version 1.4.2 is used by WordPress to initiate all plugin functionality
71 characters long description:
A simple plugin that enables you to add Yahoo Weather to add your site.
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 plugin3,506 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 28 | 27 | 3,506 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
366 PNG files occupy 2.56MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/dark/png/41.png | 10.23KB | 6.03KB | ▼ 41.04% |
images/flat_black/png/09.png | 1.88KB | 2.13KB | 0.00% |
images/flat_white/png/07.png | 4.10KB | 2.78KB | ▼ 32.20% |
images/dark/png/15.png | 9.71KB | 5.97KB | ▼ 38.50% |
images/light/png/19-old.png | 8.03KB | 5.04KB | ▼ 37.18% |