Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼1.28ms] Passed 4 tests
Server-side resources used by Debullpost2pdf
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.35 ▲3.86 |
Dashboard /wp-admin | 3.57 ▲0.27 | 50.58 ▼5.83 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 56.24 ▲4.55 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 91.27 ▼7.71 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 44.42 ▲4.93 |
Server storage [IO: ▲21.88MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 800 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Debullpost2pdf
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲156 | 13.46 ▼1.15 | 9.22 ▲7.54 | 45.10 ▲1.40 |
Dashboard /wp-admin | 2,208 ▲31 | 5.61 ▲0.05 | 94.43 ▼0.37 | 40.11 ▲1.31 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▲0.01 | 40.90 ▲4.37 | 36.72 ▼0.87 |
Add New Post /wp-admin/post-new.php | 1,539 ▼6 | 17.90 ▼5.12 | 644.91 ▼43.40 | 55.20 ▲1.40 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.25 ▲0.04 | 93.69 ▼17.81 | 45.01 ▼1.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
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)
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 take a closer look at the following
- 146× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\SetHtmlPageFooter' not found in wp-content/plugins/debullient-post2pdf-pro/vendor/mpdf/mpdf/src/Tag/SetHtmlPageHeader.php:5
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/debullient-post2pdf-pro/vendor/psr/log/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/debullient-post2pdf-pro/vendor/mpdf/mpdf/src/Tag/IndexEntry.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_option() in wp-content/plugins/debullient-post2pdf-pro/templates/debullpost2pdf-header.php:13
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/debullient-post2pdf-pro/vendor/mpdf/mpdf/src/Tag/Dl.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/debullient-post2pdf-pro/vendor/mpdf/mpdf/src/Tag/Bdi.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/debullient-post2pdf-pro/vendor/mpdf/mpdf/src/Tag/TocEntry.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/debullient-post2pdf-pro/vendor/mpdf/mpdf/src/Tag/Br.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\MpdfException' not found in wp-content/plugins/debullient-post2pdf-pro/vendor/mpdf/mpdf/src/MpdfImageException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/debullient-post2pdf-pro/vendor/mpdf/mpdf/src/Tag/HGroup.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% 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 require attention:
- Screenshots: These screenshots do not have images: #1 (Front-end PDF Button), #2 (PDF Button settings), #3 (PDF Setup settings), #4 (PDF Header & Footer settings), #5 (PDF Custom CSS), #6 (Disable PDF Button Metabox)
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
debullient-post2pdf-pro/debullpost2pdf.php 77% from 13 tests
The main PHP script in "Debullpost2pdf" version 1.9.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version does not match the one declared in readme.txt ("3.9.6" instead of "3.9")
- Main file name: The principal plugin file should be the same as the plugin slug ("debullient-post2pdf-pro.php" instead of "debullpost2pdf.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected87,577 lines of code in 353 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 325 | 9,395 | 10,465 | 85,709 |
Markdown | 6 | 216 | 0 | 768 |
CSS | 4 | 84 | 18 | 459 |
JSON | 5 | 29 | 0 | 379 |
JavaScript | 7 | 32 | 14 | 96 |
PO File | 1 | 25 | 27 | 66 |
XML | 3 | 9 | 0 | 66 |
YAML | 1 | 11 | 0 | 31 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 7,591)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 79.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,591.00 |
Average method complexity | 16.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 5 | |
Traits | 2 | |
Classes | 215 | |
▷ Abstract classes | 7 | 3.26% |
▷ Concrete classes | 208 | 96.74% |
▷ Final classes | 1 | 0.48% |
Methods | 1,152 | |
▷ Static methods | 82 | 7.12% |
▷ Public methods | 999 | 86.72% |
▷ Protected methods | 33 | 2.86% |
▷ Private methods | 120 | 10.42% |
Functions | 67 | |
▷ Named functions | 61 | 91.04% |
▷ Anonymous functions | 6 | 8.96% |
Constants | 392 | |
▷ Global constants | 12 | 3.06% |
▷ Class constants | 380 | 96.94% |
▷ Public constants | 380 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin