Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼1.68MB] [CPU: ▼46.21ms] Passed 4 tests
Server-side resources used by W2Ski Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.15 | 11.20 ▼28.21 |
Dashboard /wp-admin | 2.33 ▼0.98 | 11.60 ▼39.35 |
Posts /wp-admin/edit.php | 2.33 ▼1.03 | 11.18 ▼33.44 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.56 | 11.92 ▼83.85 |
Media Library /wp-admin/upload.php | 2.33 ▼0.90 | 11.85 ▼25.32 |
W2Ski Widget /wp-admin/options-general.php?page=w2ski_widget | 2.33 | 11.99 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_w2s_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by W2Ski Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.27 ▼0.08 | 1.70 ▲0.20 | 43.48 ▲3.93 |
Dashboard /wp-admin | 2,207 ▲30 | 5.67 ▲0.00 | 89.05 ▲2.59 | 40.86 ▲1.50 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.06 ▲0.08 | 34.92 ▼0.07 | 33.16 ▼3.96 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.62 ▲0.93 | 680.70 ▲37.33 | 61.16 ▲11.47 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.28 ▲0.15 | 96.97 ▼17.17 | 41.96 ▼4.67 |
W2Ski Widget /wp-admin/options-general.php?page=w2ski_widget | 823 | 1.73 | 25.34 | 26.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/w2ski-widget/includes/class-w2ski-widget.php+28
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_w2s_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=w2ski_widget
- > Notice in wp-content/plugins/w2ski-widget/includes/class-w2ski-widget.php+162
Trying to access array offset on value of type bool
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 perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/w2ski-widget/uninstall.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/w2ski-widget/includes/class-w2ski-widget.php:246
- > 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 issues were found
Optimizations
Plugin configuration 90% 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
1 plugin tags: widget
w2ski-widget/w2ski-plugin.php 77% from 13 tests
The main PHP file in "W2Ski Widget" ver. 0.1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("w2ski-widget.php" instead of "w2ski-plugin.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin239 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 87 | 62 | 209 |
JavaScript | 1 | 2 | 0 | 18 |
CSS | 1 | 0 | 0 | 6 |
Markdown | 1 | 3 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.71% |
Functions | 1 | |
▷ Named functions | 1 | 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
There were not PNG files found in your plugin