Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.62ms] Passed 4 tests
Analyzing server-side resources used by WaterMark PDF for WooCommerce - Stamp PDFs with Customer Data
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.67 ▼2.47 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.41 ▼7.25 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.55 ▲0.96 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.21 ▼7.78 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.53 ▼0.99 |
Server storage [IO: ▲4.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
WaterMark PDF for WooCommerce - Stamp PDFs with Customer Data: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲37 | 14.07 ▼0.71 | 1.59 ▲0.07 | 40.69 ▼0.49 |
Dashboard /wp-admin | 2,204 ▲37 | 5.64 ▼0.01 | 91.16 ▼22.28 | 41.24 ▼3.61 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.01 ▲0.06 | 39.24 ▲3.29 | 37.38 ▲3.70 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.67 ▲0.55 | 609.92 ▼77.17 | 48.35 ▼13.82 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.17 ▼0.05 | 108.54 ▼3.97 | 47.67 ▲1.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/waterwoo-pdf/lib/tcpdf/tcpdf/tools/tcpdf_addfont.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'LittlePackage\\lib\\TCPDF_Child' not found in wp-content/plugins/waterwoo-pdf/lib/tcpdi/fpdf_tpl.php:22
- > PHP Fatal error
Uncaught Error: Class 'TCPDF' not found in wp-content/plugins/waterwoo-pdf/lib/tcpdf/tcpdf/tcpdf_import.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
waterwoo-pdf/waterwoo-pdf.php 92% from 13 tests
The entry point to "WaterMark PDF for WooCommerce - Stamp PDFs with Customer Data" version 3.3.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "4.0")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected49,605 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 1,951 | 12,655 | 48,839 |
PO File | 3 | 317 | 919 | 703 |
Markdown | 1 | 21 | 0 | 63 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 4,422)
- Method cyclomatic complexity should be reduced to less than 100 (currently 500)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 291.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,422.00 |
Average method complexity | 9.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 500.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 805 | |
▷ Static methods | 110 | 13.66% |
▷ Public methods | 502 | 62.36% |
▷ Protected methods | 288 | 35.78% |
▷ Private methods | 15 | 1.86% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 120 | |
▷ Global constants | 120 | 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
No PNG images were found in this plugin