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
Installer ran successfully
Server metrics [RAM: ▲0.79MB] [CPU: ▲1.69ms] Passed 4 tests
Analyzing server-side resources used by Easy Invoice - WordPress Invoice Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 44.90 ▲6.63 |
Dashboard /wp-admin | 4.13 ▲0.82 | 47.18 ▼5.20 |
Posts /wp-admin/edit.php | 4.18 ▲0.82 | 56.81 ▲10.91 |
Add New Post /wp-admin/post-new.php | 6.75 ▲0.86 | 95.84 ▲3.56 |
Media Library /wp-admin/upload.php | 4.05 ▲0.82 | 39.41 ▲1.75 |
Settings /wp-admin/edit.php?post_type=easy-invoice&page=easy-invoice-settings | 4.32 | 48.73 |
Addons /wp-admin/edit.php?post_type=easy-invoice&page=ei-addons | 4.06 | 36.39 |
All Payments /wp-admin/edit.php?post_type=easy-invoice-payment | 4.09 | 38.43 |
All Invoices /wp-admin/edit.php?post_type=easy-invoice | 4.09 | 38.12 |
Add New invoice /wp-admin/post-new.php?post_type=easy-invoice | 4.50 | 65.04 |
Server storage [IO: ▲14.90MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 743 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
easy_invoice_version |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
easy_invoice_first_install_time |
db_upgraded |
theysaidso_admin_options |
easy_invoice_invoice_number |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Invoice - WordPress Invoice Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.59 ▼0.78 | 1.60 ▼0.04 | 43.88 ▲4.97 |
Dashboard /wp-admin | 2,251 ▲63 | 4.81 ▼0.08 | 96.47 ▼7.68 | 39.83 ▲0.44 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.00 ▼0.05 | 38.33 ▲0.17 | 34.21 ▲2.46 |
Add New Post /wp-admin/post-new.php | 1,567 ▲25 | 23.26 ▲4.91 | 605.12 ▼2.94 | 52.67 ▲6.28 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.21 ▲0.03 | 94.88 ▼8.93 | 42.46 ▼3.97 |
Settings /wp-admin/edit.php?post_type=easy-invoice&page=easy-invoice-settings | 1,150 | 3.30 | 52.86 | 27.43 |
Addons /wp-admin/edit.php?post_type=easy-invoice&page=ei-addons | 887 | 2.06 | 25.52 | 27.71 |
All Payments /wp-admin/edit.php?post_type=easy-invoice-payment | 1,115 | 1.94 | 30.72 | 28.63 |
All Invoices /wp-admin/edit.php?post_type=easy-invoice | 1,051 | 1.96 | 30.00 | 30.71 |
Add New invoice /wp-admin/post-new.php?post_type=easy-invoice | 3,906 | 7.38 | 157.42 | 115.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- easy_invoice_first_install_time
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- easy_invoice_version
- easy_invoice_invoice_number
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/easy-invoice/includes/Admin/Templates/Addon/List.php
- 266× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/easy-invoice/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/easy-invoice/vendor/mpdf/mpdf/src/Tag/Sup.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/easy-invoice/vendor/mpdf/mpdf/src/Tag/Br.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/easy-invoice/vendor/mpdf/mpdf/src/Tag/NewColumn.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/easy-invoice/vendor/mpdf/mpdf/src/SizeConverter.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\MpdfException' not found in wp-content/plugins/easy-invoice/vendor/mpdf/mpdf/src/Http/Exception/RequestException.php:5
- > PHP Fatal error
Trait 'Mpdf\\Strict' not found in wp-content/plugins/easy-invoice/vendor/mpdf/mpdf/src/Writer/PageWriter.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\CrossReference\\AbstractReader' not found in wp-content/plugins/easy-invoice/vendor/setasign/fpdi/src/PdfParser/CrossReference/FixedReader.php:22
- > PHP Notice
Undefined index: filename in wp-content/plugins/easy-invoice/vendor/mpdf/mpdf/data/out.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/easy-invoice/vendor/mpdf/mpdf/src/Barcode/EanUpc.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
4 plugin tags: pdf invoice, invoice, custom invoice, wordpress invoice
easy-invoice/easy-invoice.php Passed 13 tests
The entry point to "Easy Invoice - WordPress Invoice Plugin" version 1.0.8 is a PHP file that has certain tags in its header comment area
60 characters long description:
Invoicing plugin for WordPress that supports invoice Payment
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/easy-invoice/includes/Gateways/PayPal/php-paypal-ipn/cert/api_cert_chain.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 518 | 13,976 | 13,380 | 83,607 |
CSS | 11 | 299 | 33 | 1,723 |
Markdown | 4 | 179 | 0 | 709 |
JavaScript | 8 | 150 | 13 | 663 |
JSON | 3 | 0 | 0 | 505 |
Sass | 19 | 74 | 1 | 438 |
XML | 3 | 10 | 0 | 75 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 7,024)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 47.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,024.00 |
Average method complexity | 11.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 64 | |
Interfaces | 25 | |
Traits | 6 | |
Classes | 361 | |
▷ Abstract classes | 14 | 3.88% |
▷ Concrete classes | 347 | 96.12% |
▷ Final classes | 16 | 4.61% |
Methods | 1,900 | |
▷ Static methods | 233 | 12.26% |
▷ Public methods | 1,687 | 88.79% |
▷ Protected methods | 62 | 3.26% |
▷ Private methods | 151 | 7.95% |
Functions | 88 | |
▷ Named functions | 62 | 70.45% |
▷ Anonymous functions | 26 | 29.55% |
Constants | 441 | |
▷ Global constants | 15 | 3.40% |
▷ Class constants | 426 | 96.60% |
▷ Public constants | 426 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/addons-placeholder.png | 6.49KB | 4.19KB | ▼ 35.41% |
assets/images/upload-image.png | 2.57KB | 1.94KB | ▼ 24.52% |