Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/advanced-widgets/advanced-widgets.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; AdvancedWidgets has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼51.97ms] Passed 4 tests
An overview of server-side resources used by Advanced Widgets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 4.60 ▼36.88 |
Dashboard /wp-admin | 2.16 ▼1.15 | 6.16 ▼41.54 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 7.88 ▼38.12 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 5.98 ▼91.35 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 4.94 ▼30.72 |
Advanced Widgets /wp-admin/options-general.php?page=advanced-widgets | 2.16 | 6.43 |
Server storage [IO: ▲0.13MB] [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: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Widgets
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▼0.27 | 1.72 ▼0.08 | 47.53 ▼5.86 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▼0.10 | 103.86 ▼0.61 | 38.03 ▼0.89 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.03 | 40.03 ▲0.75 | 34.15 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.86 ▼5.42 | 645.49 ▼29.80 | 54.13 ▲2.12 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.26 ▼0.00 | 97.75 ▼8.73 | 42.07 ▼3.99 |
Advanced Widgets /wp-admin/options-general.php?page=advanced-widgets | 909 | 2.02 | 27.83 | 29.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/advanced-widgets/advanced-widgets.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; AdvancedWidgets has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=advanced-widgets
- > Deprecated in wp-content/plugins/advanced-widgets/advanced-widgets.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; AdvancedWidgets has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=advanced-widgets
- > Warning in wp-content/plugins/advanced-widgets/advanced-widgets.php+13
Use of undefined constant AW_URL - assumed 'AW_URL' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=advanced-widgets
- > Warning in wp-content/plugins/advanced-widgets/advanced-widgets.php+14
Use of undefined constant AW_JS - assumed 'AW_JS' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=advanced-widgets
- > Warning in wp-content/plugins/advanced-widgets/advanced-widgets.php+15
Use of undefined constant AW_IMG - assumed 'AW_IMG' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=advanced-widgets
- > Warning in wp-content/plugins/advanced-widgets/advanced-widgets.php+16
Use of undefined constant AW_CSS - assumed 'AW_CSS' (this will throw an Error in a future version of PHP)
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
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/advanced-widgets/advanced-widgets.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-widgets/aw_configurar.php:1
- > PHP Warning
Use of undefined constant AW_URL - assumed 'AW_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-widgets/advanced-widgets.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-widgets/aw_ajustes.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
advanced-widgets/advanced-widgets.php Passed 13 tests
Analyzing the main PHP file in "Advanced Widgets" version 1.2
127 characters long description:
Agrega widgets en tus sidebars y luego elije donde se van a mostrar! Nunca fue más fácil personalizar la sección de widgets!
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
Everything looks great! No dangerous files found in this plugin463 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 25 | 14 | 317 |
PO File | 1 | 36 | 61 | 73 |
JavaScript | 1 | 0 | 0 | 51 |
CSS | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 80.00 |
▷ Minimum class complexity | 80.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 6.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 58.22KB | 23.59KB | ▼ 59.47% |
assets/screenshot-1.png | 46.00KB | 21.02KB | ▼ 54.31% |