Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.32ms] Passed 4 tests
Server-side resources used by WCPDF User Template
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.22 ▼2.80 |
Dashboard /wp-admin | 3.34 ▲0.03 | 52.05 ▼1.90 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 46.92 ▼0.80 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 80.25 ▼15.76 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.98 ▲1.48 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
bvd_wcpdf_user_template_settings |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WCPDF User Template
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 13.17 ▼1.21 | 1.80 ▲0.05 | 42.78 ▲2.56 |
Dashboard /wp-admin | 2,240 ▲37 | 4.86 ▼0.98 | 105.19 ▼5.09 | 42.50 ▲0.12 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.00 ▼0.16 | 35.15 ▼4.41 | 33.22 ▼5.03 |
Add New Post /wp-admin/post-new.php | 1,540 ▲9 | 23.24 ▼0.04 | 681.76 ▼3.24 | 57.79 ▲3.43 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.22 ▲0.04 | 111.49 ▲12.55 | 48.19 ▲6.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- bvd_wcpdf_user_template_settings
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'BvdWcpdfUserTemplateAbstract' not found in wp-content/plugins/bvd-wcpdf-user-template/general/classes/Templates.class.php:16
- > PHP Fatal error
Uncaught Error: Class 'BvdWcpdfUserTemplateAbstract' not found in wp-content/plugins/bvd-wcpdf-user-template/general/classes/TemplatePath.class.php:16
- > PHP Fatal error
Uncaught Error: Class 'BvdWcpdfUserTemplateAbstract' not found in wp-content/plugins/bvd-wcpdf-user-template/admin/classes/SettingPage.class.php:16
- > PHP Fatal error
Uncaught Error: Class 'BvdWcpdfUserTemplateAbstract' not found in wp-content/plugins/bvd-wcpdf-user-template/admin/classes/User.class.php:16
- > PHP Fatal error
Uncaught Error: Class 'BvdWcpdfUserTemplateAbstract' not found in wp-content/plugins/bvd-wcpdf-user-template/general/classes/User.class.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: woocommerce-pdf-invoices-packing-slips, user based template
bvd-wcpdf-user-template/bvd-wcpdf-user-template.php 92% from 13 tests
Analyzing the main PHP file in "WCPDF User Template" version 1.0.0
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 156 characters long)
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
Good job! No executable or dangerous file extensions detected745 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 225 | 698 | 707 |
Sass | 1 | 2 | 0 | 16 |
CSS | 1 | 2 | 0 | 12 |
JSON | 2 | 2 | 0 | 7 |
JavaScript | 1 | 2 | 27 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 5.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 8 | 12.70% |
▷ Public methods | 56 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 11.11% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin