Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.12MB] [CPU: ▼12.23ms] Passed 4 tests
An overview of server-side resources used by PDF-Rechnungsverwaltung
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.62 | 20.14 ▼24.53 |
Dashboard /wp-admin | 3.36 ▲0.01 | 47.66 ▼17.16 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 55.40 ▲2.10 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 94.08 ▼9.32 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 44.98 ▲7.27 |
Server storage [IO: ▲0.88MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 205 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_invoice_customer |
wp_invoice |
wp_invoice_position |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for PDF-Rechnungsverwaltung
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 13.30 ▼1.34 | 1.72 ▼0.06 | 46.15 ▼1.37 |
Dashboard /wp-admin | 2,220 ▲35 | 4.82 ▼0.12 | 105.93 ▼23.54 | 37.60 ▼12.78 |
Posts /wp-admin/edit.php | 2,103 ▲17 | 2.04 ▲0.00 | 40.90 ▲3.18 | 35.09 ▲3.60 |
Add New Post /wp-admin/post-new.php | 1,540 ▼8 | 23.48 ▲5.25 | 679.87 ▲1.40 | 47.40 ▼12.26 |
Media Library /wp-admin/upload.php | 1,402 ▲17 | 4.17 ▼0.03 | 109.44 ▲5.53 | 41.99 ▼1.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_invoice
- wp_invoice_customer
- wp_invoice_position
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
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)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 10× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdf/tutorial/tuto6.php
- > /wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdf/tutorial/tuto4.php
- > /wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdf/tutorial/makefont.php
- > /wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdf/tutorial/tuto5.php
- > /wp-content/plugins/pdf-rechnungsverwaltung/_inc/settings/admin/partials/settings-page-admin-display.php
- > /wp-content/plugins/pdf-rechnungsverwaltung/views/container.php
- > /wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdf/tutorial/tuto1.php
- > /wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdf/tutorial/tuto2.php
- > /wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdf/tutorial/tuto7.php
- 48× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\PdfParserException' not found in wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdi/src/PdfParser/CrossReference/CrossReferenceException.php:20
- > PHP Warning
Use of undefined constant PDF_INVOICES_PLUGIN_DIR - assumed 'PDF_INVOICES_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pdf-rechnungsverwaltung/views/container.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdi/src/PdfParser/Type/PdfToken.php:18
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\CrossReference\\CrossReference' not found in wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdiPdfParser/src/PdfParser/CrossReference/CrossReference.php:31
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdi/src/PdfParser/Type/PdfName.php:21
- > PHP Fatal error
Uncaught Error: Interface 'setasign\\Fpdi\\PdfParser\\Filter\\FilterInterface' not found in wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdi/src/PdfParser/Filter/Flate.php:18
- > PHP Warning
include(PDF_INVOICES_PLUGIN_DIR/views/.php): failed to open stream: No such file or directory in wp-content/plugins/pdf-rechnungsverwaltung/views/container.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\PdfParserException' not found in wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdi/src/PdfParser/Type/PdfTypeException.php:20
- > PHP Fatal error
Uncaught Error: Interface 'setasign\\Fpdi\\PdfParser\\Filter\\FilterInterface' not found in wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdi/src/PdfParser/Filter/AsciiHex.php:18
- > PHP Fatal error
Uncaught Error: Interface 'setasign\\Fpdi\\PdfParser\\CrossReference\\ReaderInterface' not found in wp-content/plugins/pdf-rechnungsverwaltung/setasign/fpdiPdfParser/src/PdfParser/CrossReference/CompressedReader.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in pdf-rechnungsverwaltung/assets to your readme.txt
pdf-rechnungsverwaltung/pdf_invoices.php 92% from 13 tests
The primary PHP file in "PDF-Rechnungsverwaltung" version 0.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pdf-rechnungsverwaltung.php" instead of "pdf_invoices.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin11,234 lines of code in 168 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 98 | 1,329 | 3,258 | 7,706 |
HTML | 59 | 72 | 0 | 3,236 |
Markdown | 3 | 39 | 0 | 141 |
JSON | 4 | 0 | 0 | 126 |
CSS | 3 | 0 | 10 | 22 |
JavaScript | 1 | 2 | 27 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 17.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 346.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 60 | |
▷ Abstract classes | 2 | 3.33% |
▷ Concrete classes | 58 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 370 | |
▷ Static methods | 40 | 10.81% |
▷ Public methods | 289 | 78.11% |
▷ Protected methods | 76 | 20.54% |
▷ Private methods | 5 | 1.35% |
Functions | 27 | |
▷ Named functions | 20 | 74.07% |
▷ Anonymous functions | 7 | 25.93% |
Constants | 44 | |
▷ Global constants | 6 | 13.64% |
▷ Class constants | 38 | 86.36% |
▷ Public constants | 38 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
setasign/fpdf/tutorial/logo.png | 2.32KB | 2.26KB | ▼ 2.57% |