10% wp-world-weather-online

Code Review | WP World Weather Online

WordPress plugin WP World Weather Online scored10%from 54 tests.

About plugin

  • Plugin page: wp-world-weather-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.4.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2014
  • Latest release: Feb 3, 2016
  • Number of updates: 25
  • Update frequency: every 28.7 days
  • Top authors: WP-Tlon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,506 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-world-weather-online/wp-world-weather-online.php+24
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_wwo has a deprecated constructor

Server metrics [RAM: ▼1.85MB] [CPU: ▼54.88ms] Passed 4 tests

Server-side resources used by WP World Weather Online
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.324.59 ▼39.39
Dashboard /wp-admin2.16 ▼1.145.74 ▼49.02
Posts /wp-admin/edit.php2.16 ▼1.196.63 ▼44.08
Add New Post /wp-admin/post-new.php2.16 ▼3.736.86 ▼87.02
Media Library /wp-admin/upload.php2.16 ▼1.076.47 ▼30.76

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_wp_wwo

Browser metrics Passed 4 tests

A check of browser resources used by WP World Weather Online
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.23 ▼1.411.74 ▼0.3243.65 ▼0.82
Dashboard /wp-admin2,203 ▲174.87 ▼0.07109.91 ▼15.0841.44 ▼4.97
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0139.71 ▲3.2734.93 ▼5.43
Add New Post /wp-admin/post-new.php1,524 ▼1423.13 ▲0.06603.51 ▼108.3346.59 ▼36.07
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0297.32 ▼4.9644.44 ▼1.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp-world-weather-online/wp-world-weather-online.php+24
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_wwo has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_wp_wwo
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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

SRP 50% from 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
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-world-weather-online/wp-world-weather-online.php on line 11
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-world-weather-online/wp-world-weather-online.php on line 11
    • > PHP Warning
      require_once(ABSPATHWPINC/formatting.php): failed to open stream: No such file or directory in wp-content/plugins/wp-world-weather-online/wp-world-weather-online.php on line 11
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/formatting.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-world-weather-online/wp-world-weather-online.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

wp-world-weather-online/wp-world-weather-online.php 92% from 13 tests

"WP World Weather Online" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 351 characters long)

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
Success! There were no dangerous files found in this plugin728 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS5870545
PHP16733183

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity11.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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png2.42KB1.45KB▼ 39.93%
screenshot-1.png22.37KB8.83KB▼ 60.51%
screenshot-2.png8.38KB4.06KB▼ 51.60%