Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.42MB] [CPU: ▲12.14ms] Passed 4 tests
An overview of server-side resources used by Wordpress Assets manager, dequeue scripts, dequeue styles
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.42 ▲0.95 | 43.43 ▼0.88 |
Dashboard /wp-admin | 4.89 ▲1.59 | 72.51 ▲24.10 |
Posts /wp-admin/edit.php | 4.93 ▲1.57 | 65.02 ▲16.55 |
Add New Post /wp-admin/post-new.php | 7.48 ▲1.59 | 99.54 ▲11.92 |
Media Library /wp-admin/upload.php | 4.80 ▲1.57 | 56.72 ▲20.96 |
Assets manager /wp-admin/options-general.php?page=gonzales-wbcr_gonzales | 5.62 | 329.21 |
Server storage [IO: ▲1.87MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- There were 1 file (14.40KB) illegally modified outside of "wp-content/plugins/gonzales/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/assets-manager.php
Filesystem: 279 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
wbcr_gnz_plugin_activated |
wbcr_gnz_plugin_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Wordpress Assets manager, dequeue scripts, dequeue styles: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲94 | 14.25 ▼0.07 | 1.67 ▲0.03 | 36.45 ▼9.06 |
Dashboard /wp-admin | 2,255 ▲84 | 5.66 ▲0.09 | 94.80 ▲0.88 | 39.05 ▼7.75 |
Posts /wp-admin/edit.php | 2,164 ▲61 | 2.04 ▲0.06 | 42.19 ▲1.82 | 35.92 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,561 ▲26 | 23.47 ▼1.32 | 616.84 ▲19.68 | 33.77 ▼40.69 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.16 ▼0.02 | 101.03 ▲6.01 | 43.33 ▼0.69 |
Assets manager /wp-admin/options-general.php?page=gonzales-wbcr_gonzales | 1,227 | 2.32 | 38.68 | 38.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gonzales/views/part-assets-manager-tabs-menu.php
- > /wp-content/plugins/gonzales/views/part-assets-manager-info-bar.php
- > /wp-content/plugins/gonzales/views/tab-content-assets-plugins.php
- > /wp-content/plugins/gonzales/views/part-tab-content-assets-plugins-settings.php
- > /wp-content/plugins/gonzales/views/part-assets-manager-header.php
- > /wp-content/plugins/gonzales/views/tab-content-assets.php
- > /wp-content/plugins/gonzales/views/assets-manager.php
- > /wp-content/plugins/gonzales/views/conditions-logic-editor-template.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Wbcr_Factory473_Update' not found in wp-content/plugins/gonzales/migrations/010108.php:7
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step' not found in wp-content/plugins/gonzales/libs/factory/templates/pages/setup-parts/class-step-form.php:11
- > PHP Fatal error
Uncaught Error: Class 'Wbcr_Factory473_Update' not found in wp-content/plugins/gonzales/migrations/010100.php:7
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step' not found in wp-content/plugins/gonzales/libs/factory/templates/pages/setup-parts/class-step-custom.php:11
- > PHP Fatal error
Uncaught Error: Class 'Wbcr_FactoryForms469_FontControl' not found in wp-content/plugins/gonzales/libs/factory/forms/controls/google-font.php:18
- > PHP Fatal error
Uncaught Error: Class 'Wbcr_Factory473_Update' not found in wp-content/plugins/gonzales/migrations/020005.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
gonzales/gonzales.php Passed 13 tests
"Wordpress Assets manager, dequeue scripts, dequeue styles" version 2.1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
112 characters long description:
Increase the speed of the pages by disabling unused scripts (.JS) and styles (.CSS). Make your website REACTIVE!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin28,025 lines of code in 208 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 3,382 | 8,030 | 12,691 |
CSS | 32 | 211 | 337 | 4,696 |
JavaScript | 22 | 945 | 512 | 4,213 |
LESS | 13 | 678 | 167 | 3,277 |
JSON | 1 | 0 | 0 | 1,810 |
PO File | 10 | 374 | 529 | 1,335 |
Markdown | 1 | 1 | 0 | 2 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 18.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 101 | |
▷ Abstract classes | 16 | 15.84% |
▷ Concrete classes | 85 | 84.16% |
▷ Final classes | 0 | 0.00% |
Methods | 754 | |
▷ Static methods | 29 | 3.85% |
▷ Public methods | 542 | 71.88% |
▷ Protected methods | 153 | 20.29% |
▷ Private methods | 59 | 7.82% |
Functions | 42 | |
▷ Named functions | 21 | 50.00% |
▷ Anonymous functions | 21 | 50.00% |
Constants | 67 | |
▷ Global constants | 58 | 86.57% |
▷ Class constants | 9 | 13.43% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/factory/templates/pages/templates/impressive-lite/assets/img/5-stars22.png | 3.51KB | 0.70KB | ▼ 79.99% |
libs/factory/templates/pages/templates/impressive/assets/img/paypal-donate.png | 12.44KB | 4.99KB | ▼ 59.88% |
libs/factory/templates/pages/templates/impressive-lite/assets/img/webcraftic-plugin-icon.png | 1.97KB | 0.75KB | ▼ 61.79% |
libs/factory/templates/pages/templates/impressive/assets/img/5-stars22.png | 3.51KB | 0.70KB | ▼ 79.99% |
assets/img/cancel.png | 0.42KB | 0.22KB | ▼ 47.82% |