Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▲0.44ms] Passed 4 tests
A check of server-side resources used by WP Forecast Weather
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.86 ▲4.61 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.91 ▼0.51 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.02 ▼0.96 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.33 ▲2.31 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.97 ▲0.92 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
WP Forecast Weather: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.22 ▼1.32 | 1.71 ▲0.05 | 45.14 ▲3.09 |
Dashboard /wp-admin | 2,206 ▲17 | 5.91 ▲0.96 | 106.63 ▲3.15 | 41.90 ▼0.36 |
Posts /wp-admin/edit.php | 2,086 ▼0 | 2.02 ▲0.04 | 40.43 ▲2.69 | 34.39 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,519 ▼10 | 23.35 ▲5.00 | 729.45 ▲64.21 | 60.34 ▲2.39 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▼0.06 | 94.21 ▼7.06 | 40.19 ▼1.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-forecast-weather/fw.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (https://github.com/TurnereManager/Forecast-Weather/blob/master/inline.png), #2 (https://github.com/TurnereManager/Forecast-Weather/blob/master/forecast.PNG), #3 (https://github.com/TurnereManager/Forecast-Weather/blob/master/thumbnail.png)
wp-forecast-weather/fw.php 92% from 13 tests
This is the main PHP file of "WP Forecast Weather" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-forecast-weather.php" instead of "fw.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin617 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 0 | 45 | 389 |
SVG | 1 | 0 | 0 | 153 |
PHP | 2 | 7 | 8 | 70 |
Markdown | 1 | 3 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 3 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 25.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
thumbnail.png | 5.88KB | 2.58KB | ▼ 56.18% |
forecast.PNG | 4.68KB | 2.78KB | ▼ 40.57% |
inline.png | 24.22KB | 10.22KB | ▼ 57.82% |