Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.02ms] Passed 4 tests
A check of server-side resources used by Snow Forecast - Piste Pro
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.10 | 42.43 ▼0.89 |
Dashboard /wp-admin | 3.44 ▲0.09 | 48.71 ▼5.17 |
Posts /wp-admin/edit.php | 3.55 ▲0.15 | 49.87 ▲0.19 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.11 | 87.41 ▼8.79 |
Media Library /wp-admin/upload.php | 3.36 ▲0.09 | 39.78 ▼1.24 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_bdpp_snow_forecast_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Snow Forecast - Piste Pro
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲102 | 13.83 ▼0.70 | 7.64 ▲5.14 | 43.50 ▼2.07 |
Dashboard /wp-admin | 2,208 ▲41 | 5.66 ▲0.13 | 86.20 ▼30.33 | 43.60 ▲1.18 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.00 ▼0.02 | 40.63 ▲3.98 | 36.37 ▼4.01 |
Add New Post /wp-admin/post-new.php | 1,378 ▼160 | 16.73 ▼6.21 | 577.32 ▼45.85 | 53.82 ▼0.04 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.22 ▼0.01 | 103.17 ▼6.70 | 42.17 ▼7.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_bdpp_snow_forecast_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/snow-forecast/public/partials/snow-forecast-public-display.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/snow-forecast/admin/class-snow-forecast-widget.php:3
- > PHP Notice
Undefined variable: atts in wp-content/plugins/snow-forecast/public/partials/snow-forecast-public-display.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/snow-forecast/admin/partials/snow-forecast-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: snow, ski forecast, snow forecast, ski resorts, piste pro
snow-forecast/snow-forecast.php 92% from 13 tests
The primary PHP file in "Snow Forecast - Piste Pro" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 232 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected6,025 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 4,656 |
CSS | 2 | 106 | 14 | 725 |
PHP | 13 | 168 | 558 | 519 |
JavaScript | 2 | 47 | 60 | 125 |
PHP code Passed 2 tests
Analyzing 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.25 |
Average class complexity | 3.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 28 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 22.22% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected