Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.16MB] [CPU: ▼48.47ms] Passed 4 tests
This is a short check of server-side resources used by ASPL Email PDF Invoice
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.82 ▼0.64 | 14.16 ▼26.64 |
Dashboard /wp-admin | 2.87 ▼0.48 | 19.21 ▼45.10 |
Posts /wp-admin/edit.php | 2.87 ▼0.49 | 20.50 ▼31.88 |
Add New Post /wp-admin/post-new.php | 2.87 ▼3.02 | 18.75 ▼90.27 |
Media Library /wp-admin/upload.php | 2.87 ▼0.36 | 16.33 ▼24.06 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 119 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ASPL Email PDF Invoice
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.72 ▲0.12 | 1.68 ▲0.09 | 42.64 ▲2.63 |
Dashboard /wp-admin | 2,212 ▲35 | 5.63 ▲0.09 | 86.03 ▼5.77 | 41.01 ▲0.65 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 1.98 ▼0.06 | 35.47 ▼8.22 | 33.31 ▼5.88 |
Add New Post /wp-admin/post-new.php | 1,549 ▲15 | 18.34 ▼0.00 | 675.28 ▲36.74 | 68.54 ▼2.75 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.27 ▲0.03 | 95.10 ▼9.08 | 43.96 ▼2.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/aspl-email-pdf-invoice/include/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/aspl-email-pdf-invoice/include/fpdf/tutorial/tuto2.php
- > /wp-content/plugins/aspl-email-pdf-invoice/include/fpdf/tutorial/tuto6.php
- > /wp-content/plugins/aspl-email-pdf-invoice/include/fpdf/tutorial/tuto7.php
- > /wp-content/plugins/aspl-email-pdf-invoice/include/fpdf/tutorial/tuto4.php
- > /wp-content/plugins/aspl-email-pdf-invoice/include/fpdf/tutorial/tuto1.php
- > /wp-content/plugins/aspl-email-pdf-invoice/include/fpdf/tutorial/makefont.php
- > /wp-content/plugins/aspl-email-pdf-invoice/include/fpdf/tutorial/tuto5.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/aspl-email-pdf-invoice/include/fpdf/makefont/ttfparser.php on line 382
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
4 plugin tags: invoice, invoice email, email, woocommerce invoice
aspl-email-pdf-invoice/aspl_email_pdf_invoice.php 77% from 13 tests
Analyzing the main PHP file in "ASPL Email PDF Invoice" version 1.1.0
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/i18n/languages/")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("aspl-email-pdf-invoice.php" instead of "aspl_email_pdf_invoice.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected6,961 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 301 | 324 | 3,691 |
HTML | 59 | 72 | 0 | 3,240 |
CSS | 2 | 0 | 0 | 30 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 65.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 337.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 144 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 106 | 73.61% |
▷ Protected methods | 38 | 26.39% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/fpdf/tutorial/logo.png | 2.32KB | 2.26KB | ▼ 2.57% |