Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.11ms] Passed 4 tests
Analyzing server-side resources used by TechGasp Weather Master
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.38 ▼3.25 |
Dashboard /wp-admin | 3.37 ▲0.06 | 48.50 ▼1.52 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.76 ▼0.79 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.85 ▼6.86 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 45.49 ▲8.92 |
Add-ons /wp-admin/admin.php?page=weather-master-admin-addons | 3.32 | 34.85 |
Weather Master /wp-admin/admin.php?page=weather-master | 3.27 | 35.00 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_weather_master_widget_fast |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
TechGasp Weather Master: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.30 ▼0.99 | 1.66 ▼0.21 | 43.71 ▼1.57 |
Dashboard /wp-admin | 2,220 ▲32 | 4.93 ▼0.89 | 141.98 ▲24.16 | 80.15 ▲39.44 |
Posts /wp-admin/edit.php | 2,118 ▲26 | 2.02 ▼0.08 | 38.47 ▲1.10 | 39.17 ▲3.62 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 17.46 ▼5.94 | 693.53 ▲28.73 | 59.97 ▼5.27 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.17 ▼0.04 | 104.83 ▼21.63 | 59.16 ▲13.02 |
Add-ons /wp-admin/admin.php?page=weather-master-admin-addons | 1,146 | 2.05 | 27.36 | 40.19 |
Weather Master /wp-admin/admin.php?page=weather-master | 1,192 | 5.52 | 148.33 | 45.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_weather_master_widget_fast
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weather-master
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weather-master
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 16 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weather-master
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weather-master
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
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
Almost there! Just fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/weather-master/includes/weather-master-admin-addons-table.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/weather-master/weather-master.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/weather-master/includes/weather-master-admin-table-header.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weather-master/includes/weather-master-widget-ow-fast.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/weather-master/includes/weather-master-admin-addons.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/weather-master/includes/weather-master-admin-table-news.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/weather-master/includes/weather-master-admin.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=weather-master
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=weather-master
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
weather-master/weather-master.php Passed 13 tests
The principal PHP file in "TechGasp Weather Master" v. 5.1.6 is loaded by WordPress automatically on each request
98 characters long description:
TechGasp Weather Master is the heavy duty, professional wordpress weather plugin. Just like on TV.
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
Success! There were no dangerous files found in this plugin444 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 28 | 62 | 444 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 2 | 22.22% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
9 PNG files occupy 0.28MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/techgasp-hr.png | 0.94KB | 0.13KB | ▼ 86.60% |
images/techgasp-admin-addons-updater.png | 14.03KB | 13.02KB | ▼ 7.21% |
images/techgasp-minilogo-16.png | 1.86KB | 0.92KB | ▼ 50.87% |
images/techgasp-check-no.png | 21.14KB | 7.14KB | ▼ 66.23% |
images/techgasp-check-yes.png | 22.22KB | 7.59KB | ▼ 65.83% |