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 gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼12.66ms] Passed 4 tests
Analyzing server-side resources used by Resolution1 (R1) Contact Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 46.10 ▼6.04 |
Dashboard /wp-admin | 3.38 ▲0.08 | 50.89 ▼16.62 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 50.00 ▼3.23 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 89.78 ▼20.17 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.70 ▼7.80 |
Resolution1 (R1) Contact Widget /wp-admin/options-general.php?page=my-setting-admin | 3.28 | 35.83 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_resolution1wp_widget |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Resolution1 (R1) Contact Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.39 ▼0.23 | 1.69 ▼0.17 | 38.51 ▼6.50 |
Dashboard /wp-admin | 2,202 ▲22 | 5.57 ▼0.08 | 88.69 ▼11.23 | 40.67 ▼2.66 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.96 ▼0.03 | 35.81 ▼3.56 | 34.68 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.39 ▲0.48 | 666.90 ▼45.53 | 58.21 ▲0.14 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.19 ▲0.07 | 97.97 ▼18.25 | 43.15 ▼6.24 |
Resolution1 (R1) Contact Widget /wp-admin/options-general.php?page=my-setting-admin | 844 | 2.04 | 24.29 | 64.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_resolution1wp_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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 SRP test was a success
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 76% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: A description for screenshot #1 is missing in r1-widget/assets to your readme.txt
- Donate link: Please fix this invalid url: ""
r1-widget/resolution-widget.php 69% from 13 tests
"Resolution1 (R1) Contact Widget" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("r1-widget.php" instead of "resolution-widget.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 206 characters long)
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin523 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 97 | 274 | 423 |
XML | 4 | 0 | 0 | 100 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 22 | |
▷ Static methods | 4 | 18.18% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
1 PNG file occupies 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/favicon.png | 137.62KB | 30.74KB | ▼ 77.66% |