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.27MB] [CPU: ▼7.28ms] Passed 4 tests
This is a short check of server-side resources used by PDF Invoices & Packing Slips
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 45.67 ▼0.16 |
Dashboard /wp-admin | 3.67 ▲0.33 | 52.18 ▼12.75 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 51.75 ▼4.63 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 90.74 ▼11.57 |
Media Library /wp-admin/upload.php | 3.53 ▲0.31 | 46.01 ▲9.69 |
Preview PDF /wp-admin/admin.php?page=pips_view_pdf | 3.50 | 37.08 |
Server storage [IO: ▲9.55MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 314 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by PDF Invoices & Packing Slips
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 13.23 ▼1.52 | 2.24 ▲0.45 | 45.02 ▲1.19 |
Dashboard /wp-admin | 2,251 ▲60 | 5.81 ▲0.88 | 97.99 ▼11.67 | 75.22 ▲29.56 |
Posts /wp-admin/edit.php | 2,131 ▲39 | 2.04 ▲0.05 | 38.11 ▼3.40 | 33.98 ▼2.13 |
Add New Post /wp-admin/post-new.php | 1,708 ▲194 | 22.62 ▲4.94 | 767.18 ▲93.13 | 59.34 ▲1.33 |
Media Library /wp-admin/upload.php | 1,433 ▲42 | 4.30 ▲0.16 | 102.79 ▲0.40 | 77.93 ▲33.90 |
Preview PDF /wp-admin/admin.php?page=pips_view_pdf | 800 | 2.08 | 25.06 | 23.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/pdf-invoices-and-packing-slips/vendor/masterminds/html5/bin/entities.php
- > /wp-content/plugins/pdf-invoices-and-packing-slips/templates/simple/packing/footer.php
- > /wp-content/plugins/pdf-invoices-and-packing-slips/templates/simple/invoice/footer.php
- 137× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Masterminds\\HTML5\\Parser\\StringInputStream' not found in wp-content/plugins/pdf-invoices-and-packing-slips/vendor/masterminds/html5/src/HTML5/Parser/FileInputStream.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Masterminds\\HTML5\\Parser\\EventHandler' not found in wp-content/plugins/pdf-invoices-and-packing-slips/vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php:26
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/pdf-invoices-and-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/NullFrameDecorator.php:17
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/pdf-invoices-and-packing-slips/vendor/phenx/php-svg-lib/src/Svg/Tag/Polygon.php:11
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\ValueList' not found in wp-content/plugins/pdf-invoices-and-packing-slips/vendor/sabberworm/php-css-parser/src/Value/RuleValueList.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pdf-invoices-and-packing-slips/templates/simple/packing/header.php:6
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/pdf-invoices-and-packing-slips/vendor/phenx/php-svg-lib/src/Svg/Tag/Line.php:11
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\DirectoryEntry' not found in wp-content/plugins/pdf-invoices-and-packing-slips/vendor/phenx/php-font-lib/src/FontLib/TrueType/TableDirectoryEntry.php:18
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/pdf-invoices-and-packing-slips/vendor/phenx/php-svg-lib/src/Svg/Tag/StyleTag.php:13
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/pdf-invoices-and-packing-slips/vendor/phenx/php-font-lib/src/FontLib/Table/Type/post.php:18
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
pdf-invoices-and-packing-slips/pdf-invoices-and-packing-slips.php 92% from 13 tests
The main file in "PDF Invoices & Packing Slips" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected43,866 lines of code in 246 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 230 | 8,718 | 16,949 | 41,163 |
JSON | 5 | 0 | 0 | 1,565 |
CSS | 5 | 186 | 52 | 824 |
PO File | 1 | 85 | 93 | 189 |
Markdown | 2 | 28 | 0 | 58 |
JavaScript | 1 | 4 | 0 | 42 |
HTML | 1 | 0 | 0 | 17 |
SVG | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 30.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 809.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 97.00 |
Code structure | ||
---|---|---|
Namespaces | 42 | |
Interfaces | 9 | |
Traits | 1 | |
Classes | 201 | |
▷ Abstract classes | 12 | 5.97% |
▷ Concrete classes | 189 | 94.03% |
▷ Final classes | 1 | 0.53% |
Methods | 2,254 | |
▷ Static methods | 140 | 6.21% |
▷ Public methods | 1,792 | 79.50% |
▷ Protected methods | 400 | 17.75% |
▷ Private methods | 62 | 2.75% |
Functions | 36 | |
▷ Named functions | 7 | 19.44% |
▷ Anonymous functions | 29 | 80.56% |
Constants | 223 | |
▷ Global constants | 8 | 3.59% |
▷ Class constants | 215 | 96.41% |
▷ Public constants | 210 | 97.67% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/woocommerce.png | 7.05KB | 3.41KB | ▼ 51.68% |
vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |