Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.66MB] [CPU: ▼12.18ms] Passed 4 tests
Server-side resources used by Frisbo eFulfillment
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.83 ▲1.36 | 44.94 ▲0.14 |
Dashboard /wp-admin | 4.66 ▲1.31 | 52.02 ▼9.20 |
Posts /wp-admin/edit.php | 4.78 ▲1.42 | 50.05 ▲2.46 |
Add New Post /wp-admin/post-new.php | 4.52 ▼1.38 | 43.91 ▼42.13 |
Media Library /wp-admin/upload.php | 4.59 ▲1.35 | 45.25 ▲12.08 |
Server storage [IO: ▲3.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 1,286 new files
Database: no new tables, 8 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
remove-frisbo-id-from-variable-products |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Frisbo eFulfillment
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲46 | 14.13 ▼0.22 | 1.54 ▼0.15 | 37.52 ▼5.36 |
Dashboard /wp-admin | 2,213 ▲33 | 5.69 ▲0.03 | 84.28 ▼2.08 | 82.80 ▲39.77 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.02 ▲0.04 | 35.19 ▲0.38 | 34.04 ▼0.90 |
Add New Post /wp-admin/post-new.php | 45 ▼1,481 | 0.41 ▼22.66 | 0.08 ▼667.19 | 9.50 ▼55.37 |
Media Library /wp-admin/upload.php | 1,418 ▲15 | 4.11 ▼0.05 | 118.40 ▲10.33 | 50.44 ▲1.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- remove-frisbo-id-from-variable-products
- recovery_mode_email_last_sent
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/frisbo-woocommerce/tests/phpunit/bootstrap.php
- 401× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Unary\\AbstractUnary' not found in wp-content/plugins/frisbo-woocommerce/vendor/twig/twig/src/Node/Expression/Unary/PosUnary.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Handler\\HandlerInterface' not found in wp-content/plugins/frisbo-woocommerce/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/frisbo-woocommerce/vendor/twig/twig/src/Node/Expression/NameExpression.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/frisbo-woocommerce/vendor/twig/twig/test/Twig/Tests/ParserTest.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/frisbo-woocommerce/vendor/twig/twig/src/Node/Expression/ArrowFunctionExpression.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Test\odeTestCase' not found in wp-content/plugins/frisbo-woocommerce/vendor/twig/twig/test/Twig/Tests/Node/IfTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Test\odeTestCase' not found in wp-content/plugins/frisbo-woocommerce/vendor/twig/twig/test/Twig/Tests/Node/BlockReferenceTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Sandbox\\SecurityError' not found in wp-content/plugins/frisbo-woocommerce/vendor/twig/twig/src/Sandbox/SecurityNotAllowedMethodError.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/frisbo-woocommerce/vendor/twig/twig/src/Node/Expression/TempNameExpression.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/frisbo-woocommerce/vendor/twig/twig/src/Node/ForLoopNode.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Contributors: Plugin contributors not specified
frisbo-woocommerce/frisbo-woocommerce.php 92% from 13 tests
The main PHP script in "Frisbo eFulfillment" version 2.1.13 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin68,021 lines of code in 915 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 748 | 9,532 | 17,677 | 57,282 |
Markdown | 19 | 1,551 | 0 | 4,331 |
reStructuredText | 95 | 2,510 | 2,265 | 3,406 |
JSON | 15 | 0 | 0 | 944 |
C | 1 | 171 | 186 | 860 |
Twig | 11 | 6 | 2 | 408 |
CSS | 1 | 68 | 0 | 347 |
JavaScript | 1 | 33 | 13 | 177 |
YAML | 6 | 30 | 3 | 127 |
Bourne Shell | 1 | 6 | 0 | 45 |
XML | 2 | 4 | 1 | 38 |
HTML | 11 | 0 | 0 | 17 |
C/C++ Header | 1 | 7 | 13 | 15 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
m4 | 1 | 2 | 1 | 5 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 6.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 54 | |
Interfaces | 54 | |
Traits | 10 | |
Classes | 694 | |
▷ Abstract classes | 25 | 3.60% |
▷ Concrete classes | 669 | 96.40% |
▷ Final classes | 31 | 4.63% |
Methods | 3,042 | |
▷ Static methods | 233 | 7.66% |
▷ Public methods | 2,439 | 80.18% |
▷ Protected methods | 285 | 9.37% |
▷ Private methods | 318 | 10.45% |
Functions | 294 | |
▷ Named functions | 159 | 54.08% |
▷ Anonymous functions | 135 | 45.92% |
Constants | 349 | |
▷ Global constants | 95 | 27.22% |
▷ Class constants | 254 | 72.78% |
▷ Public constants | 254 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.31MB with 0.17MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 11.23KB | 4.85KB | ▼ 56.83% |
assets/banner-772x250.png | 307.88KB | 156.04KB | ▼ 49.32% |