Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/mywidget-recommendations/includes/class-mywidget-recommendations.php+169
Function create_function() is deprecated
Server metrics [RAM: ▼1.88MB] [CPU: ▼54.93ms] Passed 4 tests
This is a short check of server-side resources used by myWidget recommendations
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.88 ▼37.40 |
Dashboard /wp-admin | 2.12 ▼1.18 | 8.30 ▼42.95 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 5.86 ▼38.52 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 6.63 ▼100.84 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.12 ▼26.85 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_mywidget-recommendations |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for myWidget recommendations
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲170 | 13.92 ▼0.28 | 22.97 ▲21.30 | 49.56 ▲9.62 |
Dashboard /wp-admin | 2,225 ▲36 | 5.84 ▲0.91 | 98.94 ▼33.52 | 85.29 ▲40.41 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▼0.04 | 33.84 ▼5.89 | 33.01 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,685 ▲157 | 22.44 ▲4.05 | 620.35 ▼51.27 | 53.58 ▼8.29 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.15 ▼0.01 | 109.50 ▲2.64 | 47.05 ▲4.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/mywidget-recommendations/includes/class-mywidget-recommendations.php+169
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_mywidget-recommendations
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mywidget-recommendations/public/partials/mycom-widget-public-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mywidget-recommendations/includes/class-mywidget-recommendations-view.php:25
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/mywidget-recommendations/admin/partials/mywidget-recommendations-admin-display.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (**myWidget's settings page**) image not found
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
mywidget-recommendations/mywidget-recommendations.php 92% from 13 tests
The entry point to "myWidget recommendations" version 1.0.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 plugin318 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 144 | 599 | 263 |
PO File | 1 | 7 | 7 | 49 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 1.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 30 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.24MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/mywidget_menu_icon.png | 0.57KB | 0.77KB | 0.00% |
assets/screenshot-1.png | 242.72KB | 60.79KB | ▼ 74.96% |
public/img/mycom_widget.png | 5.83KB | 3.02KB | ▼ 48.18% |