Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.93ms] Passed 4 tests
Server-side resources used by GIFT4U - Gift Cards All in One for Woo
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.71 ▼1.45 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.27 ▼0.81 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.53 ▼1.81 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.66 ▼15.63 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.91 ▲4.70 |
Server storage [IO: ▲7.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 732 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_gift4u_giftcard_coupons |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for GIFT4U - Gift Cards All in One for Woo
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.38 ▼0.97 | 1.86 ▲0.24 | 39.53 ▼2.79 |
Dashboard /wp-admin | 2,212 ▲27 | 5.79 ▼0.12 | 103.25 ▼6.68 | 39.63 ▼2.32 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 1.97 ▼0.08 | 38.15 ▼1.01 | 35.43 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,551 ▲32 | 18.30 ▼4.88 | 636.14 ▼17.95 | 61.66 ▲7.20 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.24 ▼0.00 | 100.28 ▲2.45 | 41.45 ▼2.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_gift4u_giftcard_coupons
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
- 228× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\TypeFilter\\TypeFilter' not found in wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/ShallowCopyFilter.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/vendor/mpdf/mpdf/src/Tag/PageFooter.php:7
- > PHP Fatal error
Uncaught Error: Class 'tFPDF' not found in wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/vendor/setasign/fpdi/src/Tfpdf/FpdfTpl.php:20
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\SetHtmlPageFooter' not found in wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/vendor/mpdf/mpdf/src/Tag/SetPageFooter.php:5
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/vendor/setasign/fpdi/src/PdfParser/Type/PdfToken.php:16
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/vendor/setasign/fpdi/src/PdfParser/Type/PdfIndirectObject.php:20
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\Filter\\Filter' not found in wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineEmptyCollectionFilter.php:12
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/vendor/mpdf/mpdf/src/Tag/Img.php:7
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\MpdfException' not found in wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/vendor/mpdf/mpdf/src/Http/Exception/ForbiddenRequestException.php:5
- > PHP Fatal error
Trait 'Mpdf\\Strict' not found in wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/vendor/mpdf/mpdf/src/Writer/FontWriter.php on line 10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
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 to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7 in gift4u-gift-cards-all-in-one-for-woo/assets to your readme.txt
gift4u-gift-cards-all-in-one-for-woo/gift4u-gift-cards-all-in-one-for-woo.php 92% from 13 tests
This is the main PHP file of "GIFT4U - Gift Cards All in One for Woo" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 characters long)
Code Analysis 95% from 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 detected90,256 lines of code in 566 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 441 | 12,885 | 12,937 | 82,407 |
SVG | 2 | 0 | 8 | 1,991 |
CSS | 50 | 168 | 195 | 1,626 |
JavaScript | 33 | 326 | 55 | 1,436 |
Sass | 11 | 217 | 44 | 1,053 |
Markdown | 9 | 295 | 0 | 977 |
JSON | 16 | 0 | 0 | 688 |
XML | 3 | 10 | 0 | 75 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 7,024)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 54.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,024.00 |
Average method complexity | 12.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 55 | |
Interfaces | 25 | |
Traits | 6 | |
Classes | 317 | |
▷ Abstract classes | 9 | 2.84% |
▷ Concrete classes | 308 | 97.16% |
▷ Final classes | 14 | 4.55% |
Methods | 1,768 | |
▷ Static methods | 173 | 9.79% |
▷ Public methods | 1,558 | 88.12% |
▷ Protected methods | 62 | 3.51% |
▷ Private methods | 148 | 8.37% |
Functions | 35 | |
▷ Named functions | 6 | 17.14% |
▷ Anonymous functions | 29 | 82.86% |
Constants | 429 | |
▷ Global constants | 5 | 1.17% |
▷ Class constants | 424 | 98.83% |
▷ Public constants | 424 | 100.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
6 PNG files occupy 0.42MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/just-for-you.png | 103.13KB | 105.18KB | 0.00% |
assets/img/thank-you.png | 119.13KB | 55.84KB | ▼ 53.13% |
assets/img/love.png | 60.06KB | 26.44KB | ▼ 55.97% |
assets/img/happy-birthday.png | 89.13KB | 40.59KB | ▼ 54.46% |
assets/img/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |