Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.26MB] [CPU: ▼12.72ms] Passed 4 tests
Server-side resources used by WP Optimize By xTraffic
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 38.94 ▼3.64 |
Dashboard /wp-admin | 3.58 ▲0.24 | 48.22 ▼18.31 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 45.76 ▼6.33 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 79.06 ▼22.61 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 37.53 ▲2.43 |
Server storage [IO: ▲12.19MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/wp-optimize-by-xtraffic/" and "wp-content/uploads/"
- (new file) wp-content/pep-vn/static-vars/.empty
Filesystem: 467 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Optimize By xTraffic: 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,856 ▲110 | 14.78 ▲0.77 | 2.04 ▲0.20 | 45.65 ▲1.55 |
Dashboard /wp-admin | 2,237 ▲37 | 5.87 ▼0.03 | 106.01 ▼7.98 | 45.51 ▲1.07 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.05 ▲0.02 | 36.28 ▲0.69 | 36.98 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,541 ▲7 | 22.68 ▼0.55 | 666.76 ▲19.65 | 55.24 ▲6.32 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.20 ▼0.06 | 100.35 ▼8.30 | 50.00 ▲1.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 7× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-optimize-by-xtraffic/Application/Module/Frontend/views/error/404.php
- > /wp-content/plugins/wp-optimize-by-xtraffic/Application/Module/Backend/views/error/404.php
- > /wp-content/plugins/wp-optimize-by-xtraffic/includes/composer/vendor/crodas/languagedetector/example/learn.php
- > /wp-content/plugins/wp-optimize-by-xtraffic/Application/Module/Frontend/views/index/index.php
- > /wp-content/plugins/wp-optimize-by-xtraffic/includes/composer/vendor/crodas/languagedetector/example/classify.php
- > /wp-content/plugins/wp-optimize-by-xtraffic/Application/Module/Backend/views/layouts/partials/sponsors/vertical_socials.php
- > /wp-content/plugins/wp-optimize-by-xtraffic/Application/Module/Backend/views/dashboard/index.php
- 161× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WpPepVN\\Validation\\Validator' not found in wp-content/plugins/wp-optimize-by-xtraffic/libs/WpPepVN/Validation/Validator/Identical.php:25
- > PHP Fatal error
Uncaught Error: Class 'WpPepVN\\Validation\\Validator' not found in wp-content/plugins/wp-optimize-by-xtraffic/libs/WpPepVN/Validation/Validator/Numericality.php:22
- > PHP Fatal error
Uncaught Error: Class 'WpPepVN\\Form\\Form' not found in wp-content/plugins/wp-optimize-by-xtraffic/Application/Module/Backend/Form/OptimizeImagesOptionsForm.php:20
- > PHP Fatal error
Uncaught Error: Class 'WpPepVN\\Form\\Form' not found in wp-content/plugins/wp-optimize-by-xtraffic/Application/Module/Backend/Form/OptimizeLinksOptionsForm.php:20
- > PHP Fatal error
Uncaught Error: Class 'WPOptimizeByxTraffic\\Application\\Service\\ControllerBase' not found in wp-content/plugins/wp-optimize-by-xtraffic/Application/Module/Backend/Controller/ControllerBase.php:8
- > PHP Fatal error
Uncaught Error: Class 'WpPepVN\\Form\\Element' not found in wp-content/plugins/wp-optimize-by-xtraffic/libs/WpPepVN/Form/Element/Submit.php:13
- > PHP Fatal error
Uncaught Error: Class 'WpPepVN\\DependencyInjection\\Injectable' not found in wp-content/plugins/wp-optimize-by-xtraffic/libs/WpPepVN/Mvc/View/Engine.php:15
- > PHP Fatal error
Cannot declare class Error, because the name is already in use in wp-content/plugins/wp-optimize-by-xtraffic/Application/Module/Backend/Controller/ErrorController.php on line 3
- > PHP Warning
Use of undefined constant WP_PEPVN_NS_SHORT - assumed 'WP_PEPVN_NS_SHORT' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-optimize-by-xtraffic/Application/configs/constant.php on line 18
- > PHP Fatal error
Uncaught Error: Interface 'WpPepVN\\Cache\\FrontendInterface' not found in wp-content/plugins/wp-optimize-by-xtraffic/libs/WpPepVN/Cache/Frontend/None.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
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
These attributes need your attention:
- Tags: There are too many tags (48 tag instead of maximum 10)
wp-optimize-by-xtraffic/wp-optimize-by-xtraffic.php Passed 13 tests
The principal PHP file in "WP Optimize By xTraffic" v. 5.1.6 is loaded by WordPress automatically on each request
76 characters long description:
WP Optimize By xTraffic provides automatically optimize your WordPress site.
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 detected116,988 lines of code in 287 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 255 | 10,440 | 11,280 | 105,775 |
CSS | 10 | 7 | 22 | 7,374 |
JavaScript | 7 | 582 | 199 | 1,606 |
XML | 2 | 5 | 1 | 1,551 |
SVG | 2 | 0 | 0 | 289 |
Markdown | 2 | 97 | 0 | 207 |
JSON | 5 | 1 | 0 | 165 |
YAML | 2 | 5 | 0 | 19 |
HTML | 1 | 0 | 0 | 1 |
Patran Command Language | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 211)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 25.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 643.00 |
Average method complexity | 4.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 211.00 |
Code structure | ||
---|---|---|
Namespaces | 46 | |
Interfaces | 27 | |
Traits | 0 | |
Classes | 195 | |
▷ Abstract classes | 15 | 7.69% |
▷ Concrete classes | 180 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 1,922 | |
▷ Static methods | 361 | 18.78% |
▷ Public methods | 1,733 | 90.17% |
▷ Protected methods | 49 | 2.55% |
▷ Private methods | 140 | 7.28% |
Functions | 90 | |
▷ Named functions | 57 | 63.33% |
▷ Anonymous functions | 33 | 36.67% |
Constants | 182 | |
▷ Global constants | 47 | 25.82% |
▷ Class constants | 135 | 74.18% |
▷ Public constants | 135 | 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
8 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/logo_128x128.png | 2.78KB | 2.86KB | 0.00% |
public/images/icons/icon-greenplus.png | 0.22KB | 0.22KB | 0.00% |
public/images/transparent-1x1.png | 0.09KB | 0.09KB | 0.00% |
public/images/grey-1x1.png | 0.07KB | 0.08KB | 0.00% |
public/images/white-1x1.png | 0.07KB | 0.08KB | 0.00% |