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.04MB] [CPU: ▼3.33ms] Passed 4 tests
Analyzing server-side resources used by DobsonDev Weather
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.78 ▲2.50 |
Dashboard /wp-admin | 3.35 ▲0.05 | 47.56 ▼0.40 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.66 ▼3.05 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.30 ▼9.26 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.04 ▼0.61 |
DobsonDev Weather /wp-admin/options-general.php?page=dobsondev-weather/dobsondev-weather-app.php | 3.24 | 29.19 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_dobsondev_weather_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DobsonDev Weather
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.48 ▼0.90 | 5.09 ▲3.29 | 44.33 ▲5.07 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼0.19 | 95.92 ▼9.70 | 38.88 ▼6.63 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.15 ▲0.10 | 34.23 ▼1.11 | 35.55 ▲0.34 |
Add New Post /wp-admin/post-new.php | 1,540 ▲9 | 23.15 ▲0.18 | 653.69 ▼21.13 | 64.80 ▲4.11 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.20 ▼0.02 | 101.81 ▼5.69 | 44.47 ▼1.16 |
DobsonDev Weather /wp-admin/options-general.php?page=dobsondev-weather/dobsondev-weather-app.php | 785 | 2.06 | 22.35 | 24.54 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_dobsondev_weather_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dobsondev-weather/dobsondev-weather-app.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: weather, open weather map, weather app, dobsondev weather, dobsondev
dobsondev-weather/dobsondev-weather-app.php 92% from 13 tests
"DobsonDev Weather" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dobsondev-weather.php" instead of "dobsondev-weather-app.php")
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
No dangerous file extensions were detected300 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 51 | 83 | 187 |
CSS | 1 | 17 | 24 | 113 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ 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 | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin