Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.03MB] [CPU: ▲4.93ms] Passed 4 tests
Analyzing server-side resources used by WP EzPz Tweaks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.40 ▲0.94 | 44.30 ▲3.76 |
Dashboard /wp-admin | 4.41 ▲1.10 | 56.47 ▲2.25 |
Posts /wp-admin/edit.php | 4.46 ▲1.10 | 57.77 ▲13.54 |
Add New Post /wp-admin/post-new.php | 6.94 ▲1.06 | 101.62 ▲2.59 |
Media Library /wp-admin/upload.php | 4.27 ▲1.04 | 46.22 ▲11.13 |
Server storage [IO: ▲4.77MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 612 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
ezpz_tweaks_dashboard_widgets |
widget_recent-posts |
db_upgraded |
ezpz-tweaks-version |
ezpz-tweaks-install-time |
Browser metrics Passed 4 tests
WP EzPz Tweaks: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲112 | 15.26 ▲0.88 | 1.71 ▼0.01 | 57.99 ▲12.10 |
Dashboard /wp-admin | 2,235 ▲47 | 6.23 ▲0.35 | 142.94 ▲32.01 | 62.37 ▲15.85 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 3.59 ▲1.54 | 86.07 ▲48.94 | 23.56 ▼13.16 |
Add New Post /wp-admin/post-new.php | 1,541 ▼2 | 24.26 ▲5.89 | 795.99 ▲153.39 | 31.59 ▼23.29 |
Media Library /wp-admin/upload.php | 1,414 ▲32 | 5.18 ▲0.96 | 129.26 ▲31.60 | 59.78 ▲16.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- ezpz-tweaks-install-time
- db_upgraded
- ezpz-tweaks-version
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
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpezpz-tweaks/wp-ezpz-tweaks.php
- > /wp-content/plugins/wpezpz-tweaks/vendor/micropackage/requirements/tests/bootstrap.php
- 169× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wpezpz-tweaks/vendor/micropackage/requirements/tests/Checker/test-wp.php:17
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpezpz-tweaks/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpezpz-tweaks/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/wpezpz-tweaks/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpezpz-tweaks/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpezpz-tweaks/vendor/composer/installers/src/Composer/Installers/DframeInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/wpezpz-tweaks/vendor/cmb2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/wpezpz-tweaks/vendor/cmb2/includes/CMB2.php:21
- > PHP Fatal error
Uncaught Error: Class 'Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/wpezpz-tweaks/vendor/micropackage/requirements/src/Checker/PHPExtensions.php:16
- > PHP Fatal error
Uncaught Error: Class 'EZPZ_TWEAKS\\Engine\\cmb2\\Abstract_Custom_CMB2_Type' not found in wp-content/plugins/wpezpz-tweaks/engine/cmb2/Type_Select2.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: branding, optimization, customization, performance, admin menu editor...
wpezpz-tweaks/wp-ezpz-tweaks.php 85% from 13 tests
"WP EzPz Tweaks" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 203 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wpezpz-tweaks.php" instead of "wp-ezpz-tweaks.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
Everything looks great! No dangerous files found in this plugin63,764 lines of code in 418 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 123 | 14,522 | 18,756 | 32,851 |
PHP | 227 | 4,132 | 9,487 | 16,599 |
CSS | 15 | 328 | 1,199 | 4,974 |
JSON | 9 | 0 | 0 | 4,925 |
JavaScript | 10 | 416 | 625 | 1,724 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 9 | 351 | 0 | 979 |
YAML | 3 | 31 | 3 | 123 |
Bourne Shell | 1 | 21 | 11 | 120 |
XML | 2 | 4 | 3 | 56 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 153)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 12.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 286.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 153.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 220 | |
▷ Abstract classes | 12 | 5.45% |
▷ Concrete classes | 208 | 94.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,005 | |
▷ Static methods | 142 | 14.13% |
▷ Public methods | 853 | 84.88% |
▷ Protected methods | 124 | 12.34% |
▷ Private methods | 28 | 2.79% |
Functions | 84 | |
▷ Named functions | 51 | 60.71% |
▷ Anonymous functions | 33 | 39.29% |
Constants | 32 | |
▷ Global constants | 22 | 68.75% |
▷ Class constants | 10 | 31.25% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
vendor/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
assets/img/EzPzTweaks-icon.png | 1.42KB | 1.27KB | ▼ 10.48% |
vendor/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |