Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.99ms] Passed 4 tests
Analyzing server-side resources used by CDI - Collect and Deliver Interface for Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.70 ▼5.75 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.69 ▼1.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.34 ▲2.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.98 ▼12.28 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.98 ▼0.79 |
Server storage [IO: ▲28.26MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- The filesystem usage should be lower than 25MB (currently using 28.26MB)
Filesystem: 360 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
cdi_o_noticesadmintodisplay |
Browser metrics Passed 4 tests
Checking browser requirements for CDI - Collect and Deliver Interface for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.35 | 1.70 ▼0.00 | 39.24 ▼4.07 |
Dashboard /wp-admin | 2,198 ▲21 | 5.67 ▲0.00 | 87.55 ▼15.20 | 38.86 ▼5.25 |
Posts /wp-admin/edit.php | 2,097 ▲15 | 1.94 ▼0.03 | 40.76 ▲3.72 | 36.77 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.24 ▲0.01 | 659.83 ▼15.44 | 64.77 ▲8.08 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.16 ▼0.13 | 94.58 ▼5.84 | 41.65 ▼4.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- cdi_o_noticesadmintodisplay
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 9× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/FPDF/tutorial/tuto3.php
- > /wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/FPDF/tutorial/tuto7.php
- > /wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/FPDF/tutorial/tuto5.php
- > /wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/FPDF/tutorial/tuto1.php
- > /wp-content/plugins/collect-and-deliver-interface-for-woocommerce/uploads/CDI-collect-defaut.php
- > /wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/FPDF/tutorial/makefont.php
- > /wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/FPDF/tutorial/tuto6.php
- > /wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/FPDF/tutorial/tuto2.php
- > /wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/FPDF/tutorial/tuto4.php
- 110× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Image\\ImageBackEndInterface' not found in wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/qr-code-master/vendor/bacon/bacon-qr-code/src/Renderer/Image/SvgImageBackEnd.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/qr-code-master/vendor/dasprid/enum/test/EnumMapTest.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Docs/CDI-Doc-Setting-printlabel.php:13
- > PHP Fatal error
Uncaught Error: Interface 'DASPRiD\\Enum\\Exception\\ExceptionInterface' not found in wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/qr-code-master/vendor/dasprid/enum/src/Exception/IllegalArgumentException.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/collect-and-deliver-interface-for-woocommerce/cdi.php:23
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/qr-code-master/vendor/bacon/bacon-qr-code/test/Encoder/EncoderTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/qr-code-master/vendor/bacon/bacon-qr-code/test/Common/ReedSolomonCodecTest.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\Writer\\WriterInterface' not found in wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/qr-code-master/src/Writer/DebugWriter.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Docs/CDI-Doc-Setting-cn23.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/collect-and-deliver-interface-for-woocommerce/includes/CDI-Bibext/qr-code-master/vendor/bacon/bacon-qr-code/test/Common/FormatInformationTest.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (CDI shipping instance.)
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
collect-and-deliver-interface-for-woocommerce/cdi.php 85% from 13 tests
The main PHP file in "CDI - Collect and Deliver Interface for Woocommerce" ver. 5.3.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("collect-and-deliver-interface-for-woocommerce.php" instead of "cdi.php")
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
There were no executable files found in this plugin46,091 lines of code in 344 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 253 | 4,823 | 7,784 | 37,021 |
HTML | 59 | 72 | 0 | 3,298 |
PO File | 1 | 776 | 1,105 | 2,876 |
CSS | 5 | 60 | 54 | 1,316 |
JavaScript | 12 | 33 | 36 | 918 |
Markdown | 4 | 103 | 0 | 330 |
JSON | 5 | 0 | 0 | 227 |
YAML | 2 | 11 | 0 | 58 |
XML | 2 | 2 | 0 | 32 |
SVG | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 22.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 391.00 |
Average method complexity | 4.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 87.00 |
Code structure | ||
---|---|---|
Namespaces | 34 | |
Interfaces | 26 | |
Traits | 0 | |
Classes | 197 | |
▷ Abstract classes | 3 | 1.52% |
▷ Concrete classes | 194 | 98.48% |
▷ Final classes | 105 | 54.12% |
Methods | 1,598 | |
▷ Static methods | 537 | 33.60% |
▷ Public methods | 1,441 | 90.18% |
▷ Protected methods | 67 | 4.19% |
▷ Private methods | 90 | 5.63% |
Functions | 100 | |
▷ Named functions | 72 | 72.00% |
▷ Anonymous functions | 28 | 28.00% |
Constants | 143 | |
▷ Global constants | 29 | 20.28% |
▷ Class constants | 114 | 79.72% |
▷ Public constants | 30 | 26.32% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
67 PNG files occupy 3.01MB with 1.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logocollectmerchant.png | 37.76KB | 16.55KB | ▼ 56.18% |
images/iconcheckad.png | 0.35KB | 0.29KB | ▼ 15.97% |
images/Cube_Points_Retraits_carto_clients/Cube_cartographie_points_retraits_100px.png | 4.55KB | 2.91KB | ▼ 36.06% |
images/resetmetabox.png | 9.69KB | 0.62KB | ▼ 93.59% |
images/intruck.png | 0.84KB | 0.74KB | ▼ 12.43% |