10% quickweather

Code Review | QuickWeather Widget

WordPress plugin QuickWeather Widget scored10%from 54 tests.

About plugin

  • Plugin page: quickweather
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-3.4
  • WordPress version: 6.3.1
  • First release: May 13, 2013
  • Latest release: May 13, 2013
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: robgtus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /839 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/quickweather/QuickWeather.php+21
    Methods with the same name as their class will not be constructors in a future version of PHP; QuickWeather_widget has a deprecated constructor

Server metrics [RAM: ▼1.71MB] [CPU: ▼51.37ms] Passed 4 tests

Analyzing server-side resources used by QuickWeather Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.1810.77 ▼30.70
Dashboard /wp-admin2.29 ▼1.0110.67 ▼42.39
Posts /wp-admin/edit.php2.29 ▼1.0610.03 ▼42.44
Add New Post /wp-admin/post-new.php2.29 ▼3.599.47 ▼89.94
Media Library /wp-admin/upload.php2.29 ▼0.948.64 ▼27.84

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_quickweather

Browser metrics Passed 4 tests

QuickWeather Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.36 ▼1.202.04 ▲0.0142.33 ▼5.38
Dashboard /wp-admin2,209 ▲215.88 ▲0.06100.73 ▼18.3639.33 ▼4.92
Posts /wp-admin/edit.php2,089 ▲32.02 ▲0.0239.48 ▲1.4736.06 ▼3.32
Add New Post /wp-admin/post-new.php1,537 ▲423.34 ▲0.11670.72 ▼23.5662.49 ▲5.70
Media Library /wp-admin/upload.php1,382 ▼34.18 ▼0.0597.69 ▼5.6642.57 ▼3.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in QuickWeather_widget is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_quickweather
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quickweather/QuickWeather.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

quickweather/QuickWeather.php 92% from 13 tests

Analyzing the main PHP file in "QuickWeather Widget" version 1.0
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("quickweather.php" instead of "QuickWeather.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 plugin61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1213361

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ScreenShot.PNG1.41KB0.82KB▼ 41.63%