Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.51 ▼39.25 |
Dashboard /wp-admin | 2.11 ▼1.19 | 9.57 ▼42.31 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 7.29 ▼36.96 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 5.70 ▼82.49 |
Media Library /wp-admin/upload.php | 2.11 ▼1.11 | 5.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 |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_belgo_meteo |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Belgo Meteo
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲45 | 13.21 ▼1.38 | 1.79 ▼0.39 | 42.13 ▼5.66 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▲1.02 | 100.48 ▼7.41 | 39.75 ▼9.26 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.08 | 39.54 ▼0.63 | 35.03 ▲2.20 |
Add New Post /wp-admin/post-new.php | 1,516 ▼26 | 17.76 ▼0.50 | 645.49 ▼6.68 | 67.72 ▲11.29 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.34 ▲0.10 | 129.78 ▲33.74 | 64.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
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
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.)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 1 | 0 | 0 | 2,361 |
PHP | 1 | 28 | 31 | 123 |
CSS | 1 | 10 | 0 | 47 |
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 code | 0.17 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 8.79KB | 4.14KB | ▼ 52.90% |
screenshot-1.png | 12.43KB | 6.10KB | ▼ 50.95% |
screenshot-4.png | 4.73KB | 2.72KB | ▼ 42.60% |
screenshot-5.png | 22.02KB | 8.71KB | ▼ 60.44% |
screenshot-3.png | 6.25KB | 3.54KB | ▼ 43.29% |