10% world-weather-wwo

Code Review | World weather - WWO

WordPress plugin World weather - WWO scored10%from 54 tests.

About plugin

  • Plugin page: world-weather-wwo
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 9, 2012
  • Latest release: Aug 28, 2013
  • Number of updates: 13
  • Update frequency: every 27.2 days
  • Top authors: o----o (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,344 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/world-weather-wwo/2046-world-weather.php+50
    Methods with the same name as their class will not be constructors in a future version of PHP; world_weather_wwo has a deprecated constructor

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

This is a short check of server-side resources used by World weather - WWO
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.189.40 ▼33.84
Dashboard /wp-admin2.30 ▼1.0410.51 ▼50.64
Posts /wp-admin/edit.php2.30 ▼1.0510.21 ▼33.40
Add New Post /wp-admin/post-new.php2.30 ▼3.5811.08 ▼78.68
Media Library /wp-admin/upload.php2.30 ▼0.939.20 ▼27.78

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 408 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_world_weather_wwo
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for World weather - WWO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.27 ▼0.961.78 ▼0.6544.49 ▲0.08
Dashboard /wp-admin2,203 ▲155.89 ▲0.08106.61 ▼1.0240.90 ▼6.66
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0239.56 ▲1.9235.40 ▲1.18
Add New Post /wp-admin/post-new.php1,542 ▲918.66 ▼4.64612.78 ▼59.5161.06 ▲7.91
Media Library /wp-admin/upload.php1,391 ▲34.25 ▼0.0294.86 ▼4.9841.20 ▼4.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method world_weather_wwo::_init() should not be called statically
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_world_weather_wwo
    • widget_theysaidso_widget
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

world-weather-wwo/2046-world-weather.php 92% from 13 tests

This is the main PHP file of "World weather - WWO" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("world-weather-wwo.php" instead of "2046-world-weather.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin383 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP27367311
PO File1272772

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity8.29
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
398 PNG files occupy 5.93MB with 3.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ICTW/13.png28.21KB6.60KB▼ 76.60%
images/2046/320-thumb.png0.81KB0.91KB0.00%
images/ICTW/314.png27.20KB6.96KB▼ 74.41%
images/ICTW/122-thumb.png8.34KB2.79KB▼ 66.61%
images/VClouds Weather Icons/2-thumb.png13.89KB3.92KB▼ 71.75%