90% weather-widget-wp

Code Review | Weather Widget WP

WordPress plugin Weather Widget WP scored90%from 54 tests.

About plugin

  • Plugin page: weather-widget-wp
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6 or higher+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Nov 8, 2022
  • Latest release: Nov 8, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: ajdethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,669 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.59ms] Passed 4 tests

Server-side resources used by Weather Widget WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.14 ▼1.63
Dashboard /wp-admin3.33 ▲0.0350.00 ▼6.54
Posts /wp-admin/edit.php3.37 ▲0.0252.39 ▲3.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.68 ▼8.79
Media Library /wp-admin/upload.php3.26 ▲0.0338.88 ▼1.38

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Weather Widget WP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15919.10 ▲4.921.73 ▼0.0140.30 ▼4.85
Dashboard /wp-admin2,297 ▲1239.65 ▲4.08243.06 ▲138.3843.60 ▼2.01
Posts /wp-admin/edit.php2,225 ▲1259.21 ▲7.2286.19 ▲47.4935.45 ▼2.64
Add New Post /wp-admin/post-new.php6,220 ▲4,69219.11 ▼3.76821.47 ▲130.7840.37 ▼20.75
Media Library /wp-admin/upload.php1,519 ▲11911.09 ▲6.79145.90 ▲33.0444.84 ▼3.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: celsius, today weather, current weather, temperature, fahrenheit...

weather-widget-wp/weather-widget-wp.php 92% from 13 tests

The main PHP file in "Weather Widget WP" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires PHP: Please use periods and digits for the required version (ex. "7.0" instead of "5.6 or higher")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,929 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
JSX228832706
CSS4162356
PHP1093171309
Sass96215297
JavaScript4438201
SVG10040
JSON20020

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin