Benchmarks
Plugin footprint 83% 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.02MB] [CPU: ▼4.32ms] Passed 4 tests
This is a short check of server-side resources used by PDF For Metform
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 45.61 ▲5.19 |
Dashboard /wp-admin | 3.32 ▲0.02 | 54.15 ▼1.13 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 52.75 ▼2.23 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.26 ▼11.56 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.83 ▼2.35 |
PDF /wp-admin/admin.php?page=pdf-for-metform-page | 3.21 | 31.55 |
Server storage [IO: ▲5.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 596 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
pdf4metform |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PDF For Metform
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.39 ▼0.00 | 1.81 ▼0.08 | 41.49 ▼4.30 |
Dashboard /wp-admin | 2,198 ▲21 | 5.65 ▼0.03 | 90.88 ▼10.32 | 36.58 ▼9.79 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.06 | 41.09 ▼0.63 | 35.50 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.42 ▲5.88 | 661.59 ▼55.13 | 55.07 ▼10.83 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▼0.01 | 95.15 ▼7.65 | 46.16 ▲0.45 |
PDF /wp-admin/admin.php?page=pdf-for-metform-page | 777 | 2.05 | 24.06 | 28.79 |
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 were found after uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- pdf4metform
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% 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 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/pdf-for-metform/inc/default-template.php
- 228× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/pdf-for-metform/vendor/mpdf/mpdf/src/Tag/TBody.php:5
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Filter\\FilterException' not found in wp-content/plugins/pdf-for-metform/vendor/setasign/fpdi/src/PdfParser/Filter/Ascii85Exception.php:16
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\MpdfException' not found in wp-content/plugins/pdf-for-metform/vendor/mpdf/mpdf/src/Http/Exception/NetworkException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\TypeFilter\\TypeFilter' not found in wp-content/plugins/pdf-for-metform/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/ArrayObjectFilter.php:11
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/pdf-for-metform/vendor/mpdf/mpdf/src/Tag/Pre.php:5
- > PHP Fatal error
Trait 'Mpdf\\Strict' not found in wp-content/plugins/pdf-for-metform/vendor/mpdf/mpdf/src/Writer/JavaScriptWriter.php on line 8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/pdf-for-metform/vendor/mpdf/mpdf/src/SizeConverter.php:9
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/pdf-for-metform/vendor/mpdf/mpdf/src/Tag/Input.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\MpdfException' not found in wp-content/plugins/pdf-for-metform/vendor/mpdf/mpdf/src/Http/Exception/RequestException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/pdf-for-metform/vendor/mpdf/mpdf/src/Tag/H5.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: pdf, metform
pdf-for-metform/pdf-for-metform.php Passed 13 tests
The main PHP script in "PDF For Metform" version 1.0.0 is automatically included on every request by WordPress
22 characters long description:
PDF Plugin for metform
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected79,595 lines of code in 453 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 414 | 11,700 | 12,693 | 76,476 |
Markdown | 13 | 481 | 0 | 1,472 |
JSON | 9 | 0 | 0 | 777 |
CSS | 3 | 70 | 18 | 510 |
YAML | 9 | 63 | 4 | 236 |
XML | 3 | 10 | 0 | 75 |
JavaScript | 1 | 5 | 0 | 46 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 7,021)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 55.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,021.00 |
Average method complexity | 13.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 50 | |
Interfaces | 20 | |
Traits | 9 | |
Classes | 298 | |
▷ Abstract classes | 9 | 3.02% |
▷ Concrete classes | 289 | 96.98% |
▷ Final classes | 14 | 4.84% |
Methods | 1,538 | |
▷ Static methods | 146 | 9.49% |
▷ Public methods | 1,338 | 87.00% |
▷ Protected methods | 55 | 3.58% |
▷ Private methods | 145 | 9.43% |
Functions | 34 | |
▷ Named functions | 5 | 14.71% |
▷ Anonymous functions | 29 | 85.29% |
Constants | 429 | |
▷ Global constants | 5 | 1.17% |
▷ Class constants | 424 | 98.83% |
▷ Public constants | 424 | 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
No PNG images were found in this plugin