Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/weather-widget-by-calcatraz/calcatraz-weather-widget.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; calcatrazWeatherWidget has a deprecated constructor
Server metrics [RAM: ▼1.86MB] [CPU: ▼54.36ms] Passed 4 tests
Server-side resources used by Weather Widget by Calcatraz
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.33 | 4.85 ▼33.31 |
Dashboard /wp-admin | 2.16 ▼1.19 | 5.79 ▼54.75 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.29 ▼38.24 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 7.16 ▼91.15 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 5.24 ▼26.83 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_calcatrazweatherwidget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Weather Widget by Calcatraz: 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,882 ▲136 | 13.60 ▼0.94 | 9.83 ▲8.17 | 44.53 ▲2.84 |
Dashboard /wp-admin | 2,209 ▲27 | 5.85 ▼0.00 | 103.63 ▼3.23 | 41.06 ▼0.22 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.01 | 34.57 ▲0.22 | 31.69 ▼2.78 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.00 ▼0.11 | 658.58 ▲1.97 | 59.29 ▲2.53 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▼0.04 | 96.19 ▼5.47 | 42.64 ▼0.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/weather-widget-by-calcatraz/calcatraz-weather-widget.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; calcatrazWeatherWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_calcatrazweatherwidget
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/weather-widget-by-calcatraz/calcatraz-weather-widget.php:13
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
- Screenshots: A description for screenshot #3 is missing in weather-widget-by-calcatraz/assets to your readme.txt
weather-widget-by-calcatraz/calcatraz-weather-widget.php 92% from 13 tests
The main PHP file in "Weather Widget by Calcatraz" ver. 1.3.7 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("weather-widget-by-calcatraz.php" instead of "calcatraz-weather-widget.php")
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
Everything looks great! No dangerous files found in this plugin251 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 25 | 247 |
CSS | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin