Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▼1.33ms] Passed 4 tests
An overview of server-side resources used by Built-in Widgets Query extend (Custom Post Types & more)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 41.36 ▲3.33 |
Dashboard /wp-admin | 3.72 ▲0.42 | 47.03 ▼2.77 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 50.64 ▲1.64 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.56 | 85.20 ▼7.51 |
Media Library /wp-admin/upload.php | 3.64 ▲0.42 | 39.17 ▲7.75 |
Add New /wp-admin/post-new.php?post_type=movies | 6.43 | 91.84 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=movies | 3.64 | 39.96 |
Movies /wp-admin/edit.php?post_type=movies | 3.70 | 42.00 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_widget_extend_builtin_query__errors_log |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget-extend-builtin-query |
widget_theysaidso_widget |
can_compress_scripts |
category_children |
Browser metrics Passed 4 tests
An overview of browser requirements for Built-in Widgets Query extend (Custom Post Types & more)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲116 | 13.34 ▼1.42 | 1.77 ▲0.04 | 42.25 ▼7.73 |
Dashboard /wp-admin | 2,240 ▲55 | 4.88 ▼0.93 | 100.32 ▼15.99 | 39.34 ▼5.13 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.01 ▼0.00 | 39.75 ▲0.44 | 35.09 ▲1.31 |
Add New Post /wp-admin/post-new.php | 1,562 ▲33 | 23.15 ▲0.08 | 657.97 ▼23.96 | 54.19 ▲1.12 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.39 ▲0.25 | 105.25 ▲5.46 | 47.24 ▲4.20 |
Add New /wp-admin/post-new.php?post_type=movies | 1,558 | 17.04 | 824.38 | 30.86 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=movies | 1,474 | 2.14 | 27.19 | 31.99 |
Movies /wp-admin/edit.php?post_type=movies | 1,139 | 2.00 | 30.51 | 30.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_widget_extend_builtin_query__errors_log
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- category_children
- widget-extend-builtin-query
Smoke tests 75% 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 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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/widget-extend-builtin-query/library_wp.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Contributors: Plugin contributors not specified
widget-extend-builtin-query/index.php 92% from 13 tests
The principal PHP file in "Built-in Widgets Query extend (Custom Post Types & more)" v. 1.06 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("widget-extend-builtin-query.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,565 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 1,267 | 5,114 | 3,565 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,076)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 347.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 1,076.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 855 | |
▷ Static methods | 102 | 11.93% |
▷ Public methods | 847 | 99.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 0.94% |
Functions | 90 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 90 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected