Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.39ms] Passed 4 tests
Server-side resources used by WP Custom Widget area
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.89 ▼5.18 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.84 ▲1.04 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.03 ▼2.32 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.67 ▼7.11 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.12 ▲8.06 |
Menu Locations /wp-admin/admin.php?page=custom_menu_location | 3.24 | 31.03 |
Custom Widget Area /wp-admin/admin.php?page=custom_widget_area | 3.24 | 32.96 |
Help /wp-admin/admin.php?page=cwa_help | 3.23 | 30.65 |
Server storage [IO: ▲4.08MB] [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: 53 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_cwa |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
kz_db_version |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Custom Widget area
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 14.78 ▲0.49 | 1.87 ▼0.54 | 43.55 ▼5.26 |
Dashboard /wp-admin | 2,234 ▲46 | 5.84 ▼0.06 | 95.29 ▼5.88 | 39.70 ▼1.37 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.05 ▲0.05 | 35.76 ▼3.22 | 32.74 ▼3.72 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 17.59 ▼0.65 | 654.10 ▲23.50 | 54.14 ▼0.20 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.16 ▼0.13 | 99.22 ▼1.83 | 42.22 ▼0.65 |
Menu Locations /wp-admin/admin.php?page=custom_menu_location | 919 | 1.72 | 25.48 | 29.48 |
Custom Widget Area /wp-admin/admin.php?page=custom_widget_area | 1,082 | 1.73 | 27.55 | 29.15 |
Help /wp-admin/admin.php?page=cwa_help | 1,260 | 2.29 | 27.09 | 71.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_cwa
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- kz_db_version
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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 items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-custom-widget-area/includes/config.php on line 5
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cwa_help
- > Javascript (severe) in unknown
/wp-content/plugins/wp-custom-widget-area/admin/js/jquery.hashchange.min.js?ver=1.2.5 8:686 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
- > GET request to /wp-admin/admin.php?page=cwa_help
- > Network (severe)
wp-content/plugins/wp-custom-widget-area/admin/img/help/cwa_widget_advanced_1.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=cwa_help
- > Network (severe)
wp-content/plugins/wp-custom-widget-area/admin/img/help/cwa_widget_advanced_2.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-custom-widget-area ===
)
wp-custom-widget-area/wp-custom-widget-area.php Passed 13 tests
The main PHP file in "WP Custom Widget area" ver. 1.2.5 adds more information about the plugin and also serves as the entry point for this plugin
56 characters long description:
A wordpress plugin to create custom dynamic widget area.
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
Success! There were no dangerous files found in this plugin2,686 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 287 | 268 | 1,151 |
PHP | 13 | 244 | 533 | 1,051 |
CSS | 6 | 33 | 14 | 484 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 53 | |
▷ Static methods | 2 | 3.77% |
▷ Public methods | 48 | 90.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.43% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
23 PNG files occupy 3.90MB with 2.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/help/cwa_widget_shortcode_display.png | 183.81KB | 51.28KB | ▼ 72.10% |
admin/img/help/cwa_widget_codebase.png | 398.03KB | 118.04KB | ▼ 70.34% |
admin/img/help/cwa_widget_display.png | 192.87KB | 50.94KB | ▼ 73.59% |
admin/img/x.png | 1.04KB | 1.25KB | 0.00% |
admin/img/help/cwa_1_edit_save.png | 165.49KB | 44.87KB | ▼ 72.89% |