77% weatherwizz

Code Review | WeatherWizz

WordPress plugin WeatherWizz scored 77% from 54 tests.

About plugin

  • Plugin page: weatherwizz
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 11, 2022
  • Latest release: Sep 26, 2023
  • Number of updates: 21
  • Update frequency: every 29.7 days
  • Top authors: weatherwizz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,335 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.45ms] Passed 4 tests

A check of server-side resources used by WeatherWizz
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0151.60 ▲3.88
Dashboard /wp-admin3.32 ▲0.0152.79 ▼4.76
Posts /wp-admin/edit.php3.37 ▲0.0150.59 ▼3.34
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.00 ▲5.83
Media Library /wp-admin/upload.php3.24 ▲0.0139.98 ▲2.43

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WeatherWizz
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲8813.60 ▲0.298.98 ▲4.1251.06 ▲4.45
Dashboard /wp-admin2,224 ▲184.85 ▼0.02110.61 ▲2.3842.80 ▲0.71
Posts /wp-admin/edit.php2,107 ▲182.01 ▼0.0339.86 ▲5.1234.78 ▲0.41
Add New Post /wp-admin/post-new.php1,543 ▲2923.41 ▲5.88772.73 ▲73.7353.22 ▼3.10
Media Library /wp-admin/upload.php1,409 ▲214.16 ▼0.0396.65 ▼11.8042.45 ▼1.67

Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/weatherwizz/includes/weatherwizz.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/weatherwizz/weatherwizz-pro.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

weatherwizz/weatherwizz-pro.php 77% from 13 tests

Analyzing the main PHP file in "WeatherWizz" version 1.3.1
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("weatherwizz.php" instead of "weatherwizz-pro.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected50 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2231548
JavaScript2102

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin