Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/dashboard-quick-actions/assets/admin/redux-framework/inc/class.redux_filesystem.php+29
Creating default object from empty value
Server metrics [RAM: ▼0.73MB] [CPU: ▼46.54ms] Passed 4 tests
Analyzing server-side resources used by Dashboard Quick Actions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.26 ▼0.20 | 11.51 ▼26.52 |
Dashboard /wp-admin | 3.28 ▼0.02 | 12.92 ▼41.13 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 13.37 ▼39.14 |
Add New Post /wp-admin/post-new.php | 3.28 ▼2.61 | 15.92 ▼79.02 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 11.93 ▼26.86 |
Dashboard Quick Actions /wp-admin/options-general.php?page=dqa_options_options | 3.28 | 16.00 |
Server storage [IO: ▲7.42MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 564 new files
Database: no new tables, 9 new options
New WordPress options |
---|
redux_version_upgraded_from |
widget_recent-posts |
dqa_options-transients |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
dqa_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Dashboard Quick Actions
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲218 | 13.17 ▼1.45 | 1.81 ▼0.27 | 38.15 ▼9.17 |
Dashboard /wp-admin | 2,367 ▲179 | 5.07 ▼0.81 | 98.34 ▼22.08 | 44.50 ▼2.05 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.05 ▲0.06 | 38.05 ▲0.04 | 35.39 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 17.42 ▼5.70 | 680.84 ▼25.21 | 59.08 ▲0.09 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.11 ▼0.09 | 103.76 ▼1.62 | 43.51 ▼2.28 |
Dashboard Quick Actions /wp-admin/options-general.php?page=dqa_options_options | 7,680 | 4.05 | 94.73 | 44.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/dashboard-quick-actions/assets/admin/redux-framework/inc/class.redux_filesystem.php+29
Creating default object from empty value
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- dqa_options-transients
- redux_version_upgraded_from
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- dqa_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=dqa_options_options
- > Warning in wp-content/plugins/dashboard-quick-actions/assets/admin/redux-framework/inc/class.redux_filesystem.php+29
Creating default object from empty value
SRP 50% from 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
Please fix the following items
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dashboard-quick-actions/assets/admin/redux-framework/templates/panel/header.tpl.php:11
- > PHP Fatal error
Uncaught Error: Class 'Redux' not found in wp-content/plugins/dashboard-quick-actions/assets/admin/redux-extensions/extensions-init.php:4
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/dashboard-quick-actions/assets/admin/redux-framework/inc/themecheck/checks/full_package.php:3
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/dashboard-quick-actions/assets/admin/redux-framework/inc/themecheck/checks/embedded.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function has_action() in wp-content/plugins/dashboard-quick-actions/assets/admin/redux-framework/inc/class.thirdparty.fixes.php:4
- > PHP Fatal error
Uncaught Error: Class 'Redux_Customizer_Control' not found in wp-content/plugins/dashboard-quick-actions/assets/admin/redux-framework/inc/extensions/customizer/inc/customizer_fields.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dashboard-quick-actions/assets/admin/redux-framework/inc/class.p.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/dashboard-quick-actions/assets/admin/redux-framework/templates/panel/header_stickybar.tpl.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dashboard-quick-actions/assets/admin/redux-framework/inc/welcome/views/credits.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/dashboard-quick-actions/assets/admin/redux-framework/templates/panel/footer.tpl.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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:
- Tags: There are too many tags (12 tag instead of maximum 10)
dashboard-quick-actions/dashboard-quick-actions.php Passed 13 tests
The principal PHP file in "Dashboard Quick Actions" v. 1.2 is loaded by WordPress automatically on each request
48 characters long description:
Admin dashboard quick action icons for WordPress
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected42,616 lines of code in 348 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 103 | 4,087 | 5,361 | 18,410 |
JavaScript | 152 | 2,697 | 2,564 | 14,424 |
Sass | 44 | 581 | 58 | 5,234 |
CSS | 42 | 473 | 169 | 2,733 |
SVG | 1 | 0 | 0 | 934 |
LESS | 2 | 80 | 79 | 687 |
Markdown | 2 | 44 | 0 | 103 |
Bourne Shell | 1 | 24 | 0 | 55 |
JSON | 1 | 0 | 0 | 36 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 37.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 851.00 |
Average method complexity | 5.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 103 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 103 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 768 | |
▷ Static methods | 102 | 13.28% |
▷ Public methods | 449 | 58.46% |
▷ Protected methods | 275 | 35.81% |
▷ Private methods | 44 | 5.73% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 57 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 57 | 100.00% |
▷ Public constants | 57 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/redux-framework/assets/img/4-col-portfolio.png | 1.01KB | 0.17KB | ▼ 83.45% |
assets/admin/redux-framework/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
assets/admin/redux-framework/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
assets/admin/redux-framework/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/admin/redux-framework/assets/js/vendor/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |