Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.44ms] Passed 4 tests
Analyzing server-side resources used by Weather Forecast
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.42 ▼2.03 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.01 ▼1.58 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.50 ▲2.40 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.53 ▼6.58 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.60 ▼3.55 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_weather_forecast |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Weather Forecast
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲154 | 13.92 ▼0.70 | 8.37 ▲6.79 | 42.50 ▲2.89 |
Dashboard /wp-admin | 2,210 ▲18 | 4.81 ▼0.16 | 98.45 ▼23.58 | 38.76 ▼1.86 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.03 | 39.80 ▼0.01 | 41.26 ▲5.77 |
Add New Post /wp-admin/post-new.php | 1,527 ▲8 | 18.57 ▼4.57 | 600.35 ▼92.19 | 54.89 ▼5.21 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.21 ▼0.00 | 93.23 ▼14.01 | 40.15 ▼6.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- widget_weather_forecast
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/weather-forecast/admin/partials/weather-forecast-admin-display.php
- > /wp-content/plugins/weather-forecast/public/partials/weather-forecast-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/weather-forecast/includes/class-weather-forecast-widget.php:6
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== weather-forecast ===
)
weather-forecast/weather-forecast.php 92% from 13 tests
The main PHP script in "Weather Forecast" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin456 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 141 | 530 | 304 |
JavaScript | 3 | 18 | 56 | 112 |
CSS | 2 | 7 | 11 | 40 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin