10% belgo-meteo

Code Review | Belgo Meteo

WordPress plugin Belgo Meteo scored 10% from 54 tests.

About plugin

  • Plugin page: belgo-meteo
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.6
  • WordPress version: 6.3.1
  • First release: Jan 20, 2013
  • Latest release: Aug 24, 2013
  • Number of updates: 8
  • Update frequency: every 27.5 days
  • Top authors: worldinmyeyes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 3,531 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/belgo-meteo/belgometeo.php+35
    Methods with the same name as their class will not be constructors in a future version of PHP; belgo_meteo has a deprecated constructor

Server metrics [RAM: ▼1.89MB] [CPU: ▼50.25ms] Passed 4 tests

Analyzing server-side resources used by Belgo Meteo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.51 ▼39.25
Dashboard /wp-admin2.11 ▼1.199.57 ▼42.31
Posts /wp-admin/edit.php2.11 ▼1.247.29 ▼36.96
Add New Post /wp-admin/post-new.php2.11 ▼3.775.70 ▼82.49
Media Library /wp-admin/upload.php2.11 ▼1.115.46 ▼26.39

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Belgo Meteo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4513.21 ▼1.381.79 ▼0.3942.13 ▼5.66
Dashboard /wp-admin2,206 ▲185.91 ▲1.02100.48 ▼7.4139.75 ▼9.26
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0839.54 ▼0.6335.03 ▲2.20
Add New Post /wp-admin/post-new.php1,516 ▼2617.76 ▼0.50645.49 ▼6.6867.72 ▲11.29
Media Library /wp-admin/upload.php1,382 ▼94.34 ▲0.10129.78 ▲33.7464.65 ▲22.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/belgo-meteo/belgometeo.php+35
    Methods with the same name as their class will not be constructors in a future version of PHP; belgo_meteo has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_belgo_meteo
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/belgo-meteo/belgometeo.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget options - You may choose the source of weather info as well as a few options, such as display language and location.), #2 (IRM forecast - This will display the IRM forecast for the region that you have selected.), #3 (IRM observations - This will display the IRM observations for the location (postcode) that you have selected.), #4 (Meteo Belgique forecast - This will display the Meteo Belgique forecast for the location (postcode) that you have selected.), #5 (Buien Radar - This will display the showers radar observations from meteox.be for the whole of Belgium.)
The official readme.txt is a good inspiration

belgo-meteo/belgometeo.php 92% from 13 tests

The entry point to "Belgo Meteo" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("belgo-meteo.php" instead of "belgometeo.php")

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
There were no executable files found in this plugin2,531 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

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 complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
5 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png8.79KB4.14KB▼ 52.90%
screenshot-1.png12.43KB6.10KB▼ 50.95%
screenshot-4.png4.73KB2.72KB▼ 42.60%
screenshot-5.png22.02KB8.71KB▼ 60.44%
screenshot-3.png6.25KB3.54KB▼ 43.29%