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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.03ms] Passed 4 tests
This is a short check of server-side resources used by Digital Warranty Card Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.95 ▼2.57 |
Dashboard /wp-admin | 3.36 ▲0.05 | 42.67 ▼4.88 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 44.93 ▼2.65 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.72 ▲3.61 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.04 ▲2.00 |
Server storage [IO: ▲15.92MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 165 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Digital Warranty Card Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲40 | 14.67 ▲0.27 | 1.84 ▲0.12 | 46.21 ▲1.26 |
Dashboard /wp-admin | 2,210 ▲36 | 5.58 ▲0.00 | 93.87 ▼17.24 | 42.63 ▼2.38 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 1.97 ▼0.12 | 40.13 ▲0.96 | 38.21 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 18.21 ▼5.01 | 623.83 ▼78.14 | 72.59 ▲13.00 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.24 ▲0.07 | 99.62 ▼11.02 | 40.03 ▼9.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
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
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/digital-warranty-card-generator/tcpdf/designP3.php
- > /wp-content/plugins/digital-warranty-card-generator/tcpdf/designP1.php
- > /wp-content/plugins/digital-warranty-card-generator/tcpdf/pdf_gen.php
- > /wp-content/plugins/digital-warranty-card-generator/tcpdf/designL3.php
- > /wp-content/plugins/digital-warranty-card-generator/tcpdf/designP2.php
- > /wp-content/plugins/digital-warranty-card-generator/include/admin/wc-admin-right-sidebar.php
- > /wp-content/plugins/digital-warranty-card-generator/tcpdf/designL1.php
- > /wp-content/plugins/digital-warranty-card-generator/tcpdf/tools/tcpdf_addfont.php
- > /wp-content/plugins/digital-warranty-card-generator/tcpdf/designL2.php
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digital-warranty-card-generator/include/functions.php:6
- > PHP Warning
Use of undefined constant WCGEN_IMG - assumed 'WCGEN_IMG' (this will throw an Error in a future version of PHP) in wp-content/plugins/digital-warranty-card-generator/include/admin/wc-admin-right-sidebar.php on line 45
- > PHP Warning
Use of undefined constant WCGEN_IMG - assumed 'WCGEN_IMG' (this will throw an Error in a future version of PHP) in wp-content/plugins/digital-warranty-card-generator/include/admin/wc-admin-right-sidebar.php on line 48
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/digital-warranty-card-generator/include/admin/wc-admin-setting.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/digital-warranty-card-generator/include/admin/wc-admin-right-sidebar.php:93
- > PHP Warning
Use of undefined constant WCGEN_IMG - assumed 'WCGEN_IMG' (this will throw an Error in a future version of PHP) in wp-content/plugins/digital-warranty-card-generator/include/admin/wc-admin-right-sidebar.php on line 26
- > PHP Warning
Use of undefined constant WCGEN_IMG - assumed 'WCGEN_IMG' (this will throw an Error in a future version of PHP) in wp-content/plugins/digital-warranty-card-generator/include/admin/wc-admin-right-sidebar.php on line 70
- > PHP Warning
Use of undefined constant WCGEN_IMG - assumed 'WCGEN_IMG' (this will throw an Error in a future version of PHP) in wp-content/plugins/digital-warranty-card-generator/include/admin/wc-admin-right-sidebar.php on line 64
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/digital-warranty-card-generator/include/admin/wc-admin-left-sidebar.php:6
- > PHP Warning
Use of undefined constant WCGEN_IMG - assumed 'WCGEN_IMG' (this will throw an Error in a future version of PHP) in wp-content/plugins/digital-warranty-card-generator/include/admin/wc-admin-right-sidebar.php on line 32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 80% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Requires at least: Version not formatted correctly
digital-warranty-card-generator/wc-generator.php 62% from 13 tests
The primary PHP file in "Digital Warranty Card Generator" version 1.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and 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: Please rename the main PHP file in this plugin to the plugin slug ("digital-warranty-card-generator.php" instead of "wc-generator.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 427 characters long)
- Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "6.2 or higher")
- Requires PHP: Required version number should use periods and dots only (ex. "7.0" instead of "7.4 or higher")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected50,504 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 107 | 1,617 | 11,867 | 48,997 |
PO File | 9 | 264 | 346 | 631 |
JavaScript | 5 | 75 | 287 | 475 |
CSS | 4 | 24 | 46 | 401 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 4,391)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 502)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 461.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,391.00 |
Average method complexity | 10.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 502.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 706 | |
▷ Static methods | 110 | 15.58% |
▷ Public methods | 428 | 60.62% |
▷ Protected methods | 278 | 39.38% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 117 | |
▷ Global constants | 117 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.45MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/designP3.png | 53.83KB | 18.11KB | ▼ 66.36% |
assets/images/kinsta8.png | 11.32KB | 5.59KB | ▼ 50.63% |
assets/images/designP2.png | 54.56KB | 17.84KB | ▼ 67.30% |
assets/images/design3.png | 83.19KB | 27.02KB | ▼ 67.52% |
assets/images/kinsta4.png | 3.91KB | 1.87KB | ▼ 52.26% |