Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/create-sasnys-gift-voucher/create-sasnys-gift-voucher.php+32
define(): Declaration of case-insensitive constants is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.70ms] Passed 4 tests
This is a short check of server-side resources used by Create Sasnys Gift Voucher
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.45 ▼39.66 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.50 ▼46.20 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.51 ▼45.67 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.56 ▼87.25 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.61 ▼34.41 |
Server storage [IO: ▲12.58MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 519 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Create Sasnys Gift Voucher: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲101 | 14.25 ▼0.12 | 2.15 ▲0.16 | 39.24 ▼6.24 |
Dashboard /wp-admin | 2,220 ▲43 | 5.71 ▲0.18 | 89.16 ▼6.48 | 43.32 ▼3.66 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.96 ▼0.03 | 39.45 ▲0.08 | 40.01 ▲4.56 |
Add New Post /wp-admin/post-new.php | 1,397 ▼131 | 20.66 ▼2.41 | 605.77 ▼89.95 | 54.87 ▲3.03 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.15 ▲0.01 | 96.07 ▼6.49 | 42.84 ▼3.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/create-sasnys-gift-voucher/create-sasnys-gift-voucher.php+32
define(): Declaration of case-insensitive constants is deprecated
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 245× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/create-sasnys-gift-voucher/bin/vendor/phenx/php-font-lib/src/FontLib/Table/Table.php:19
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/create-sasnys-gift-voucher/bin/vendor/dompdf/dompdf/lib/php-svg-lib/src/Svg/Tag/Path.php:13
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/create-sasnys-gift-voucher/bin/vendor/phenx/php-font-lib/src/FontLib/Table/Type/os2.php:17
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/create-sasnys-gift-voucher/bin/vendor/dompdf/dompdf/lib/php-font-lib/src/FontLib/Table/Type/hhea.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Svg\\Surface\\SurfaceInterface' not found in wp-content/plugins/create-sasnys-gift-voucher/bin/vendor/dompdf/dompdf/lib/php-svg-lib/src/Svg/Surface/SurfaceCpdf.php:14
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Group' not found in wp-content/plugins/create-sasnys-gift-voucher/bin/vendor/phenx/php-svg-lib/src/Svg/Tag/Anchor.php:11
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/create-sasnys-gift-voucher/bin/vendor/dompdf/dompdf/lib/fonts/dompdf_font_family_cache.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'schweikert\\CSS\\Value\\Value' not found in wp-content/plugins/create-sasnys-gift-voucher/bin/vendor/dompdf/dompdf/lib/php-css-parser/lib/Sabberworm/CSS/Value/ValueList.php:5
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/create-sasnys-gift-voucher/bin/vendor/dompdf/dompdf/src/FrameReflower/Text.php:21
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/create-sasnys-gift-voucher/bin/vendor/dompdf/dompdf/lib/fonts/dompdf_font_family_cache.php on line 57
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Requires php: Version not formatted correctly
create-sasnys-gift-voucher/create-sasnys-gift-voucher.php Passed 13 tests
This is the main PHP file of "Create Sasnys Gift Voucher" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
Creates a Gift voucher with a PayPal CONNECTION
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin45,985 lines of code in 288 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 219 | 8,662 | 15,443 | 39,087 |
PO File | 7 | 1,120 | 1,267 | 2,338 |
SVG | 3 | 0 | 0 | 1,644 |
Markdown | 6 | 255 | 0 | 909 |
CSS | 32 | 154 | 60 | 846 |
JSON | 9 | 1 | 0 | 439 |
JavaScript | 1 | 83 | 19 | 439 |
XML | 6 | 3 | 2 | 201 |
YAML | 4 | 16 | 3 | 65 |
HTML | 1 | 0 | 0 | 17 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to 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.40 |
Average class complexity | 30.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 765.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 35 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 254 | |
▷ Abstract classes | 14 | 5.51% |
▷ Concrete classes | 240 | 94.49% |
▷ Final classes | 1 | 0.42% |
Methods | 2,519 | |
▷ Static methods | 108 | 4.29% |
▷ Public methods | 2,155 | 85.55% |
▷ Protected methods | 254 | 10.08% |
▷ Private methods | 110 | 4.37% |
Functions | 70 | |
▷ Named functions | 50 | 71.43% |
▷ Anonymous functions | 20 | 28.57% |
Constants | 234 | |
▷ Global constants | 12 | 5.13% |
▷ Class constants | 222 | 94.87% |
▷ Public constants | 222 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.50MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/paypal1.png | 33.67KB | 13.39KB | ▼ 60.24% |
img/GiftVoucher1s.png | 8.79KB | 3.49KB | ▼ 60.31% |
img/GiftVoucher2.png | 98.97KB | 47.93KB | ▼ 51.57% |
img/PayPal2.png | 44.99KB | 17.22KB | ▼ 61.72% |
img/kingston.png | 27.15KB | 12.22KB | ▼ 55.00% |