Benchmarks
Plugin footprint Passed 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.27MB] [CPU: ▼143.63ms] Passed 4 tests
An overview of server-side resources used by Widget Context
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▲0.36 | 30.60 ▲8.89 |
Dashboard /wp-admin | 3.37 ▲0.31 | 47.92 ▼4.71 |
Posts /wp-admin/edit.php | 3.42 ▲0.31 | 49.45 ▲2.41 |
Add New Post /wp-admin/post-new.php | 5.67 ▲0.24 | 97.56 ▼561.36 |
Media Library /wp-admin/upload.php | 3.25 ▲0.24 | 32.38 ▼10.84 |
Widget Context /wp-admin/themes.php?page=widget_context_settings | 3.22 | 32.58 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Widget Context
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,694 ▲100 | 15.82 ▲0.27 | 6.74 ▼2.55 | 47.02 ▼6.03 |
Dashboard /wp-admin | 2,975 ▲41 | 5.88 ▼0.04 | 135.08 ▼45.35 | 118.99 ▼6.70 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 68.05 ▼9.84 | 85.76 ▼24.03 |
Add New Post /wp-admin/post-new.php | 1,686 ▲186 | 18.74 ▲0.13 | 369.50 ▲6.42 | 102.91 ▼7.73 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.01 | 162.25 ▲15.24 | 116.78 ▼3.84 |
Widget Context /wp-admin/themes.php?page=widget_context_settings | 1,379 | 2.36 | 58.01 | 95.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
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
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Preseto\\WidgetContext\\wp_upload_dir() in wp-content/plugins/widget-context/src/Plugin.php:41
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Widget Context settings at the bottom of every widget), #2 (Widget Context plugin settings)
widget-context/widget-context.php 92% from 13 tests
"Widget Context" version 1.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)
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
Good job! No executable or dangerous file extensions detected1,546 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 403 | 558 | 1,427 |
JSON | 2 | 0 | 0 | 64 |
CSS | 1 | 17 | 3 | 40 |
JavaScript | 1 | 4 | 1 | 15 |
PHP code Passed 2 tests
This is a very shot 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.44 |
Average class complexity | 20.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 4 | 3.85% |
▷ Public methods | 98 | 94.23% |
▷ Protected methods | 5 | 4.81% |
▷ Private methods | 1 | 0.96% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
2 compressed PNG files occupy 0.09MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 43.02KB | 45.60KB | 0.00% |
screenshot-1.png | 48.71KB | 51.17KB | 0.00% |