Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/ajax-weather/ajax_weather_widget.php+33
Methods with the same name as their class will not be constructors in a future version of PHP; Ajax_Weather_Widget has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼61.16ms] Passed 4 tests
Server-side resources used by Ajax Weather
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.43 ▼38.31 |
Dashboard /wp-admin | 2.10 ▼1.25 | 5.18 ▼57.85 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 7.42 ▼46.13 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.31 ▼102.34 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.39 ▼29.26 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_ajax-weather-widget |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ajax Weather
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.25 ▼0.10 | 1.71 ▼0.17 | 45.19 ▲3.85 |
Dashboard /wp-admin | 2,195 ▲18 | 5.50 ▼0.17 | 86.40 ▼10.24 | 39.96 ▼0.46 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.02 | 39.53 ▲0.71 | 37.28 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.17 ▲5.00 | 653.47 ▲1.67 | 49.27 ▼33.56 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.38 ▲0.22 | 97.69 ▼12.17 | 44.94 ▼0.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/ajax-weather/ajax_weather_widget.php+33
Methods with the same name as their class will not be constructors in a future version of PHP; Ajax_Weather_Widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_ajax-weather-widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ajax-weather/service.weather_v1.php
- 34× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ajax-weather/logic.weather_bar.php on line 74
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ajax-weather/class.Weather.php on line 177
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ajax-weather/class.Weather.php on line 161
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ajax-weather/logic.weather_bar.php on line 79
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ajax-weather/class.Weather.php on line 153
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ajax-weather/class.Weather.php on line 161
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ajax-weather/class.Weather.php on line 157
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ajax-weather/class.Weather.php on line 165
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ajax-weather/class.Weather.php on line 185
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ajax-weather/class.Weather.php on line 165
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
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
Please fix the following attributes:
- Screenshots: Screenshot #1 (image file name must conform to the format of screenshot-1.jpg) image not found
- Donate link: Please fix this invalid URI: ""
ajax-weather/ajax_weather_widget.php 92% from 13 tests
The entry point to "Ajax Weather" version 1.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ajax-weather.php" instead of "ajax_weather_widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,141 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 119 | 126 | 845 |
JavaScript | 3 | 19 | 22 | 296 |
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.23 |
Average class complexity | 3.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 3 | 7.89% |
▷ Concrete classes | 35 | 92.11% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 1 | 1.11% |
▷ Public methods | 85 | 94.44% |
▷ Protected methods | 4 | 4.44% |
▷ Private methods | 1 | 1.11% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.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
There were not PNG files found in your plugin