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 gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.68ms] Passed 4 tests
Analyzing server-side resources used by mPDF add-on for RTL and Unicode Support
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.77 ▼2.36 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.31 ▼16.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.30 ▲1.20 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.37 ▼2.78 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.70 ▼0.67 |
Server storage [IO: ▲92.18MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- Try to limit filesystem usage to 25MB (currently using 92.18MB)
Filesystem: 630 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by mPDF add-on for RTL and Unicode Support
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.72 ▲0.28 | 1.81 ▼0.04 | 44.23 ▲0.03 |
Dashboard /wp-admin | 2,192 ▲18 | 5.58 ▲0.03 | 91.35 ▼7.41 | 41.31 ▼5.32 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.16 | 38.89 ▼0.65 | 34.34 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.18 ▼0.42 | 688.78 ▲42.43 | 64.61 ▲16.33 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.16 ▼0.05 | 95.08 ▼3.27 | 45.17 ▲5.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 210× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Trait 'Mpdf\\Strict' not found in wp-content/plugins/mpdf-addon-for-pdf-invoices/vendor/mpdf/mpdf/src/Writer/PageWriter.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\FormFeed' not found in wp-content/plugins/mpdf-addon-for-pdf-invoices/vendor/mpdf/mpdf/src/Tag/PageBreak.php:5
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\Tcpdf\\Fpdi' not found in wp-content/plugins/mpdf-addon-for-pdf-invoices/vendor/setasign/fpdi/src/TcpdfFpdi.php:20
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/mpdf-addon-for-pdf-invoices/vendor/mpdf/mpdf/src/Tag/Bdi.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/mpdf-addon-for-pdf-invoices/vendor/mpdf/mpdf/src/Mpdf.php:36
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/mpdf-addon-for-pdf-invoices/vendor/setasign/fpdi/src/PdfParser/Type/PdfNull.php:17
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\TypeFilter\\TypeFilter' not found in wp-content/plugins/mpdf-addon-for-pdf-invoices/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/ShallowCopyFilter.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/mpdf-addon-for-pdf-invoices/vendor/mpdf/mpdf/src/Tag/Font.php:5
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\PdfParserException' not found in wp-content/plugins/mpdf-addon-for-pdf-invoices/vendor/setasign/fpdi/src/PdfParser/CrossReference/CrossReferenceException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/mpdf-addon-for-pdf-invoices/vendor/mpdf/mpdf/src/Tag/I.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% 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: Please delete some tags, you are using 14 tag instead of maximum 10
mpdf-addon-for-pdf-invoices/wt-woocommerce-packing-list-mpdf.php 85% from 13 tests
The main file in "mPDF add-on for RTL and Unicode Support" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: The principal plugin file should be the same as the plugin slug ("mpdf-addon-for-pdf-invoices.php" instead of "wt-woocommerce-packing-list-mpdf.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected79,235 lines of code in 478 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 382 | 10,964 | 11,775 | 76,987 |
Markdown | 8 | 374 | 0 | 1,129 |
JSON | 79 | 32 | 0 | 588 |
CSS | 2 | 65 | 18 | 405 |
XML | 3 | 11 | 0 | 73 |
YAML | 3 | 11 | 3 | 50 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 7,009)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 60.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,009.00 |
Average method complexity | 13.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 44 | |
Interfaces | 10 | |
Traits | 6 | |
Classes | 284 | |
▷ Abstract classes | 9 | 3.17% |
▷ Concrete classes | 275 | 96.83% |
▷ Final classes | 13 | 4.73% |
Methods | 1,438 | |
▷ Static methods | 124 | 8.62% |
▷ Public methods | 1,236 | 85.95% |
▷ Protected methods | 69 | 4.80% |
▷ Private methods | 133 | 9.25% |
Functions | 35 | |
▷ Named functions | 10 | 28.57% |
▷ Anonymous functions | 25 | 71.43% |
Constants | 458 | |
▷ Global constants | 36 | 7.86% |
▷ Class constants | 422 | 92.14% |
▷ Public constants | 422 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/webtoffee-logo_small.png | 4.04KB | 2.85KB | ▼ 29.40% |