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.07MB] [CPU: ▼1.97ms] Passed 4 tests
A check of server-side resources used by Is it Snowing?
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.26 ▼1.41 |
Dashboard /wp-admin | 3.38 ▲0.08 | 57.71 ▲6.47 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 54.72 ▲4.89 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 87.52 ▼11.72 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.28 ▲0.35 |
Is it Snowing? /wp-admin/options-general.php?page=is_it_snowing | 3.27 | 32.55 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Is it Snowing?: 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,819 ▲58 | 14.79 ▲0.41 | 1.86 ▲0.08 | 42.48 ▼3.71 |
Dashboard /wp-admin | 2,228 ▲22 | 5.91 ▲1.02 | 99.03 ▼8.21 | 42.33 ▼2.89 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.05 ▲0.03 | 35.41 ▼2.39 | 31.27 ▼4.85 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 18.19 ▲0.28 | 638.62 ▼42.56 | 55.81 ▼4.98 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.23 ▲0.05 | 96.44 ▼24.68 | 41.89 ▼6.04 |
Is it Snowing? /wp-admin/options-general.php?page=is_it_snowing | 875 | 2.06 | 27.97 | 28.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function belabor\\is_it_snowing\\admin_url() in wp-content/plugins/is-it-snowing/includes/class-plugin-options.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/is-it-snowing/is-it-snowing.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function belabor\\is_it_snowing\\add_action() in wp-content/plugins/is-it-snowing/includes/class-assets-controller.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: snow
is-it-snowing/is-it-snowing.php 92% from 13 tests
The main PHP script in "Is it Snowing?" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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 plugin274 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 94 | 120 | 247 |
JavaScript | 2 | 6 | 9 | 27 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 3 | 10.34% |
▷ Public methods | 28 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.45% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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