Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.85ms] Passed 4 tests
This is a short check of server-side resources used by Cocolis
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.52 ▼0.49 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.90 ▼9.45 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.34 ▼1.89 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 79.32 ▼11.55 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.72 ▲3.29 |
Server storage [IO: ▲0.57MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cocolis
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.25 ▼0.02 | 1.62 ▼0.54 | 44.90 ▲2.10 |
Dashboard /wp-admin | 2,195 ▲15 | 5.59 ▼0.06 | 85.22 ▼16.74 | 41.53 ▼1.97 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.04 | 35.19 ▼1.38 | 33.93 ▼2.71 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.33 ▲0.53 | 636.81 ▼42.84 | 53.86 ▲4.31 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.25 ▼0.00 | 93.95 ▼13.36 | 41.00 ▼2.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 20× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Cocolis\\Api\\Errors\\CocolisException' not found in wp-content/plugins/cocolis/vendor/cocolis/php/src/Errors/InternalErrorException.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/cocolis/vendor/cocolis/php/tests/CocolisTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Tests\\Api\\CocolisTest' not found in wp-content/plugins/cocolis/vendor/cocolis/php/tests/models/RideTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PhpCsFixer\\Finder' not found in wp-content/plugins/cocolis/vendor/cocolis/php/.php-cs-fixer.php:3
- > PHP Fatal error
Uncaught Error: Class 'Cocolis\\Api\\Models\\AbstractModel' not found in wp-content/plugins/cocolis/vendor/cocolis/php/src/Models/Webhook.php:13
- > PHP Fatal error
Uncaught Error: Class 'Cocolis\\Api\\Clients\\AbstractClient' not found in wp-content/plugins/cocolis/vendor/cocolis/php/src/Clients/WebhookClient.php:15
- > PHP Fatal error
Uncaught Error: Class 'Cocolis\\Api\\Clients\\AbstractClient' not found in wp-content/plugins/cocolis/vendor/cocolis/php/tests/WrongResPathClient.php:7
- > PHP Fatal error
Uncaught Error: Class 'Cocolis\\Api\\Errors\\CocolisException' not found in wp-content/plugins/cocolis/vendor/cocolis/php/src/Errors/UnauthorizedException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Cocolis\\Api\\Errors\\CocolisException' not found in wp-content/plugins/cocolis/vendor/cocolis/php/src/Errors/UnprocessableEntityException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Tests\\Api\\CocolisTest' not found in wp-content/plugins/cocolis/vendor/cocolis/php/tests/clients/AbstractClientTest.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
4 plugin tags: delivery, livraison, cocolis, woocommerce
cocolis/wc-cocolis-shipping.php 92% from 13 tests
The entry point to "Cocolis" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cocolis.php" instead of "wc-cocolis-shipping.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin4,309 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 523 | 787 | 2,788 |
JSON | 8 | 0 | 0 | 764 |
Markdown | 8 | 213 | 0 | 568 |
PO File | 1 | 56 | 65 | 159 |
XML | 1 | 1 | 0 | 30 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 2 | 6.25% |
▷ Concrete classes | 30 | 93.75% |
▷ Final classes | 1 | 3.33% |
Methods | 184 | |
▷ Static methods | 38 | 20.65% |
▷ Public methods | 173 | 94.02% |
▷ Protected methods | 2 | 1.09% |
▷ Private methods | 9 | 4.89% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin