Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/waypoint-hd-weather-widget/waypoint-hd-weather.php+372
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.04ms] Passed 4 tests
This is a short check of server-side resources used by HD Weather Widget by The Waypoint
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.41 ▼37.49 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.35 ▼42.69 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.46 ▼40.36 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.58 ▼87.63 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.80 ▼28.93 |
Server storage [IO: ▲23.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_waypointweatherwidget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for HD Weather Widget by The Waypoint
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.16 ▼1.14 | 2.16 ▲0.52 | 42.28 ▼4.54 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▼0.01 | 100.75 ▲1.46 | 41.08 ▼1.49 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.04 | 33.91 ▼3.05 | 32.73 ▼5.02 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.10 ▼0.08 | 591.77 ▼85.30 | 47.18 ▼7.13 |
Media Library /wp-admin/upload.php | 1,382 ▲3 | 4.19 ▼0.11 | 96.48 ▼6.21 | 42.95 ▼4.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/waypoint-hd-weather-widget/waypoint-hd-weather.php+372
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_waypointweatherwidget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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)
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/waypoint-hd-weather-widget/waypoint-hd-weather.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== waypoint-hd-weather-widget ===
) - Tags: You are using too many tags: 12 tag instead of maximum 10
waypoint-hd-weather-widget/waypoint-hd-weather.php 92% from 13 tests
This is the main PHP file of "HD Weather Widget by The Waypoint" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("waypoint-hd-weather-widget.php" instead of "waypoint-hd-weather.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin394 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 79 | 34 | 262 |
CSS | 1 | 41 | 12 | 132 |
PHP code Passed 2 tests
A short 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.46 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 9.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 4 | |
▷ Named functions | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
48 PNG files occupy 23.49MB with 14.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/711.png | 479.86KB | 156.80KB | ▼ 67.32% |
img/731.png | 176.80KB | 93.46KB | ▼ 47.14% |
img/801.png | 606.44KB | 180.44KB | ▼ 70.25% |
img/210.png | 484.10KB | 204.07KB | ▼ 57.85% |
img/902.png | 354.65KB | 133.09KB | ▼ 62.47% |