Benchmarks
Plugin footprint 83% 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: ▲0.00MB] [CPU: ▼7.96ms] Passed 4 tests
Analyzing server-side resources used by Really Simple Packing Slips PDF
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 41.86 ▼0.20 |
Dashboard /wp-admin | 3.32 ▼0.03 | 49.90 ▼17.62 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.34 ▲3.75 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.05 ▼17.78 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.84 ▲6.33 |
Server storage [IO: ▲11.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 348 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Really Simple Packing Slips PDF
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.22 ▼0.06 | 1.58 ▼0.11 | 46.67 ▲3.37 |
Dashboard /wp-admin | 2,195 ▲15 | 5.63 ▼0.01 | 84.44 ▼5.96 | 38.88 ▼4.02 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.00 | 35.35 ▼4.63 | 34.02 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.63 ▲5.22 | 680.21 ▲30.25 | 56.52 ▲0.35 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.23 ▲0.05 | 101.42 ▼4.81 | 44.66 ▼2.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/really-simple-packing-slips-pdf/includes/dompdf/lib/php-css-parser/tests/quickdump.php
- 133× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/really-simple-packing-slips-pdf/includes/dompdf/lib/php-font-lib/src/FontLib/Table/Type/hhea.php:49
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\Value' not found in wp-content/plugins/really-simple-packing-slips-pdf/includes/dompdf/lib/php-css-parser/lib/Sabberworm/CSS/Value/ValueList.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Svg\\Surface\\SurfaceInterface' not found in wp-content/plugins/really-simple-packing-slips-pdf/includes/dompdf/lib/php-svg-lib/src/Svg/Surface/SurfacePDFLib.php:40
- > PHP Fatal error
Uncaught Error: Interface 'Dompdf\\Canvas' not found in wp-content/plugins/really-simple-packing-slips-pdf/includes/dompdf/src/Adapter/PDFLib.php:100
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/really-simple-packing-slips-pdf/includes/dompdf/src/Positioner/Fixed.php:49
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/really-simple-packing-slips-pdf/includes/dompdf/lib/php-font-lib/src/FontLib/Table/Type/hmtx.php:49
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/really-simple-packing-slips-pdf/includes/dompdf/lib/php-css-parser/lib/Sabberworm/CSS/Property/Import.php:28
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/really-simple-packing-slips-pdf/includes/dompdf/src/FrameDecorator/Page.php:64
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/really-simple-packing-slips-pdf/includes/dompdf/src/Positioner/NullPositioner.php:52
- > PHP Fatal error
Uncaught Error: Interface 'Svg\\Surface\\SurfaceInterface' not found in wp-content/plugins/really-simple-packing-slips-pdf/includes/dompdf/lib/php-svg-lib/src/Svg/Surface/SurfaceCpdf.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
5 plugin tags: packing slips, packing list, pdf, orders, woocommerce
really-simple-packing-slips-pdf/really_simple_packing_slips_pdf.php 85% from 13 tests
The main PHP file in "Really Simple Packing Slips PDF" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("really-simple-packing-slips-pdf.php" instead of "really_simple_packing_slips_pdf.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin40,167 lines of code in 264 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 198 | 8,540 | 15,458 | 38,061 |
Markdown | 6 | 265 | 0 | 947 |
CSS | 43 | 137 | 60 | 700 |
XML | 6 | 3 | 2 | 194 |
JSON | 5 | 0 | 0 | 154 |
YAML | 4 | 19 | 2 | 86 |
HTML | 1 | 0 | 0 | 17 |
SVG | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 652)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 36.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 797.00 |
Average method complexity | 4.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 182 | |
▷ Abstract classes | 12 | 6.59% |
▷ Concrete classes | 170 | 93.41% |
▷ Final classes | 0 | 0.00% |
Methods | 2,049 | |
▷ Static methods | 102 | 4.98% |
▷ Public methods | 1,765 | 86.14% |
▷ Protected methods | 210 | 10.25% |
▷ Private methods | 74 | 3.61% |
Functions | 16 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 16 | 100.00% |
Constants | 178 | |
▷ Global constants | 4 | 2.25% |
▷ Class constants | 174 | 97.75% |
▷ Public constants | 174 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |