10% waypoint-hd-weather-widget

Code Review | HD Weather Widget by The Waypoint

WordPress plugin HD Weather Widget by The Waypoint scored10%from 54 tests.

About plugin

  • Plugin page: waypoint-hd-weath...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.7
  • WordPress version: 6.3.1
  • First release: May 7, 2013
  • Latest release: Dec 5, 2013
  • Number of updates: 37
  • Update frequency: every 5.7 days
  • Top authors: johngrefe (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /7,171 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.41 ▼37.49
Dashboard /wp-admin2.05 ▼1.265.35 ▼42.69
Posts /wp-admin/edit.php2.05 ▼1.315.46 ▼40.36
Add New Post /wp-admin/post-new.php2.05 ▼3.845.58 ▼87.63
Media Library /wp-admin/upload.php2.05 ▼1.184.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.16 ▼1.142.16 ▲0.5242.28 ▼4.54
Dashboard /wp-admin2,206 ▲185.90 ▼0.01100.75 ▲1.4641.08 ▼1.49
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0433.91 ▼3.0532.73 ▼5.02
Add New Post /wp-admin/post-new.php1,519 ▼1423.10 ▼0.08591.77 ▼85.3047.18 ▼7.13
Media Library /wp-admin/upload.php1,382 ▲34.19 ▼0.1196.48 ▼6.2142.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

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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP17934262
CSS14112132

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 code0.46
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity9.00
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/711.png479.86KB156.80KB▼ 67.32%
img/731.png176.80KB93.46KB▼ 47.14%
img/801.png606.44KB180.44KB▼ 70.25%
img/210.png484.10KB204.07KB▼ 57.85%
img/902.png354.65KB133.09KB▼ 62.47%