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.11MB] [CPU: ▼8.22ms] Passed 4 tests
Server-side resources used by PDF Catalog Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 34.60 ▼5.51 |
Dashboard /wp-admin | 3.42 ▲0.07 | 46.27 ▼13.05 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 48.07 ▼0.43 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 78.90 ▼12.99 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.10 ▼1.33 |
Server storage [IO: ▲9.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 315 new files
Database: no new tables, 28 new options
New WordPress options |
---|
gmpcp_hf_item_background_color |
gmpcp_trasnlation_single |
gmpcp_background_color |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
gmpcp_hf_background_color |
gmpcp_trasnlation_tags |
theysaidso_admin_options |
gmwcp_single_display_location |
... |
Browser metrics Passed 4 tests
A check of browser resources used by PDF Catalog Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 13.22 ▼1.14 | 1.65 ▼0.01 | 39.14 ▼1.16 |
Dashboard /wp-admin | 2,232 ▲55 | 5.89 ▲0.19 | 88.84 ▲1.53 | 38.68 ▼4.03 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.26 ▲0.26 | 37.33 ▼1.30 | 31.86 ▼4.98 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.45 ▲0.44 | 664.53 ▼6.05 | 37.22 ▼22.92 |
Media Library /wp-admin/upload.php | 1,440 ▲46 | 4.54 ▲0.33 | 96.29 ▼4.65 | 42.60 ▼2.44 |
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
- The uninstall procedure has failed, leaving 28 options in the database
- gmpcp_trasnlation_read_more
- gmwcp_enable_single_product
- gmpcp_trasnlation_stock
- gmpcp_item_background_color
- db_upgraded
- gmpcp_pagebreak
- gmpcp_trasnlation_sku
- gmpcp_footer_text
- widget_recent-comments
- gmpcp_trasnlation_categories
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pdf-catalog-woocommerce/dompdf-master/vendor/masterminds/html5/bin/entities.php
- 136× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pdf-catalog-woocommerce/includes/GMWCP_layout.php:2
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\CSSList\\CSSBlockList' not found in wp-content/plugins/pdf-catalog-woocommerce/dompdf-master/vendor/sabberworm/php-css-parser/src/CSSList/AtRuleBlockList.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/pdf-catalog-woocommerce/dompdf-master/vendor/sabberworm/php-css-parser/src/Rule/Rule.php:19
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\AbstractRenderer' not found in wp-content/plugins/pdf-catalog-woocommerce/dompdf-master/vendor/dompdf/dompdf/src/Renderer/ListBullet.php:22
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/pdf-catalog-woocommerce/dompdf-master/vendor/phenx/php-svg-lib/src/Svg/Tag/Path.php:13
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\ListBullet' not found in wp-content/plugins/pdf-catalog-woocommerce/dompdf-master/vendor/dompdf/dompdf/src/FrameDecorator/ListBulletImage.php:21
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/pdf-catalog-woocommerce/dompdf-master/vendor/phenx/php-font-lib/src/FontLib/Table/DirectoryEntry.php:19
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\Header' not found in wp-content/plugins/pdf-catalog-woocommerce/dompdf-master/vendor/phenx/php-font-lib/src/FontLib/WOFF/Header.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/pdf-catalog-woocommerce/dompdf-master/vendor/sabberworm/php-css-parser/src/Property/Import.php:12
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\Absolute' not found in wp-content/plugins/pdf-catalog-woocommerce/dompdf-master/vendor/dompdf/dompdf/src/Positioner/Fixed.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Contributors: Contributors not specified
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in pdf-catalog-woocommerce/assets to your readme.txt
pdf-catalog-woocommerce/woocommerce-catalog-pdf.php 85% from 13 tests
The main PHP script in "PDF Catalog Woocommerce" version 2.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pdf-catalog-woocommerce.php" instead of "woocommerce-catalog-pdf.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected44,066 lines of code in 242 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 214 | 8,590 | 16,682 | 40,448 |
JSON | 10 | 0 | 0 | 1,773 |
Markdown | 10 | 381 | 0 | 1,279 |
CSS | 2 | 97 | 38 | 484 |
YAML | 2 | 13 | 1 | 50 |
HTML | 1 | 0 | 0 | 17 |
SVG | 1 | 0 | 0 | 8 |
JavaScript | 2 | 1 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 32.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 809.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 97.00 |
Code structure | ||
---|---|---|
Namespaces | 37 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 190 | |
▷ Abstract classes | 12 | 6.32% |
▷ Concrete classes | 178 | 93.68% |
▷ Final classes | 0 | 0.00% |
Methods | 2,189 | |
▷ Static methods | 139 | 6.35% |
▷ Public methods | 1,730 | 79.03% |
▷ Protected methods | 400 | 18.27% |
▷ Private methods | 59 | 2.70% |
Functions | 29 | |
▷ Named functions | 2 | 6.90% |
▷ Anonymous functions | 27 | 93.10% |
Constants | 220 | |
▷ Global constants | 6 | 2.73% |
▷ Class constants | 214 | 97.27% |
▷ Public constants | 209 | 97.66% |
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.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/woocommerce-placeholder-600x600.png | 39.31KB | 21.09KB | ▼ 46.36% |
dompdf-master/vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |