Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.03ms] Passed 4 tests
A check of server-side resources used by Dynamic Visitor Weather
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 37.65 ▼5.11 |
Dashboard /wp-admin | 3.42 ▲0.12 | 45.34 ▼2.51 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 45.37 ▼1.23 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 86.70 ▼7.26 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.00 ▼1.02 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
dvw_options |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_dvw |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Dynamic Visitor Weather
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.22 ▼1.19 | 2.05 ▼0.00 | 41.25 ▼10.41 |
Dashboard /wp-admin | 2,221 ▲33 | 5.83 ▲0.95 | 109.80 ▲7.02 | 66.02 ▲22.71 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.00 ▼0.01 | 35.26 ▼1.35 | 33.38 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,527 ▲7 | 23.08 ▼0.30 | 670.24 ▼12.44 | 64.06 ▲6.95 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.24 ▲0.06 | 112.10 ▲7.05 | 44.62 ▲0.86 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_dvw
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 7× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dynamic-visitor-weather/languages/index.php
- > /wp-content/plugins/dynamic-visitor-weather/images/index.php
- > /wp-content/plugins/dynamic-visitor-weather/dynamic-visitor-weather.php
- > /wp-content/plugins/dynamic-visitor-weather/js/index.php
- > /wp-content/plugins/dynamic-visitor-weather/includes/index.php
- > /wp-content/plugins/dynamic-visitor-weather/index.php
- > /wp-content/plugins/dynamic-visitor-weather/css/index.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dynamic-visitor-weather/includes/DvwWidget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-visitor-weather/includes/OptionsPage.php:162
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Donate link: Please fix this invalid url: ""
dynamic-visitor-weather/dynamic-visitor-weather.php 92% from 13 tests
The main file in "Dynamic Visitor Weather" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Make the plugin description longer than 10 characters (currently 0 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected722 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 105 | 122 | 522 |
CSS | 2 | 15 | 11 | 109 |
JavaScript | 1 | 13 | 10 | 91 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 47.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 52.17% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin