Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▼1.16ms] Passed 4 tests
This is a short check of server-side resources used by PeproDev Ultimate Invoice
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 35.00 ▼4.55 |
Dashboard /wp-admin | 3.87 ▲0.57 | 45.72 ▼2.18 |
Posts /wp-admin/edit.php | 3.98 ▲0.63 | 51.95 ▲7.39 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.57 | 91.94 ▼5.28 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 43.99 ▲10.79 |
Server storage [IO: ▲18.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 948 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for PeproDev Ultimate Invoice
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲123 | 13.17 ▼1.23 | 1.62 ▲0.03 | 40.08 ▼0.77 |
Dashboard /wp-admin | 2,278 ▲90 | 4.88 ▼0.97 | 97.77 ▼1.52 | 83.85 ▲39.89 |
Posts /wp-admin/edit.php | 2,160 ▲71 | 2.02 ▲0.01 | 38.38 ▲2.79 | 36.52 ▲1.61 |
Add New Post /wp-admin/post-new.php | 1,746 ▲224 | 24.21 ▲0.94 | 708.96 ▲86.49 | 62.15 ▲12.38 |
Media Library /wp-admin/upload.php | 1,451 ▲63 | 4.32 ▲0.04 | 98.34 ▼0.88 | 71.73 ▲26.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pepro-ultimate-invoice/include/admin/class-wcproduct-panel.php
- > /wp-content/plugins/pepro-ultimate-invoice/pepro-ultimate-invoice.php
- > /wp-content/plugins/pepro-ultimate-invoice/include/admin/class-template.php
- > /wp-content/plugins/pepro-ultimate-invoice/include/admin/class-column.php
- > /wp-content/plugins/pepro-ultimate-invoice/include/admin/class-print.php
- > /wp-content/plugins/pepro-ultimate-invoice/include/admin/class-setting.php
- 311× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/pepro-ultimate-invoice/include/vendor/symfony/css-selector/XPath/Extension/AttributeMatchingExtension.php:27
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/pepro-ultimate-invoice/include/vendor/mpdf/mpdf/src/Tag/Address.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/pepro-ultimate-invoice/include/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\MpdfException' not found in wp-content/plugins/pepro-ultimate-invoice/include/vendor/mpdf/mpdf/src/Exception/FontException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\SubstituteTag' not found in wp-content/plugins/pepro-ultimate-invoice/include/vendor/mpdf/mpdf/src/Tag/Ttz.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/pepro-ultimate-invoice/include/vendor/mpdf/mpdf/src/Tag/Aside.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/pepro-ultimate-invoice/include/vendor/mpdf/mpdf/src/Tag/B.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/pepro-ultimate-invoice/include/vendor/mpdf/mpdf/src/Tag/Hr.php:7
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/pepro-ultimate-invoice/include/vendor/mpdf/mpdf/src/Tag/H5.php:5
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/pepro-ultimate-invoice/include/vendor/setasign/fpdi/src/PdfParser/Type/PdfToken.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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #15 in pepro-ultimate-invoice/assets to your readme.txt
pepro-ultimate-invoice/pepro-ultimate-invoice.php 92% from 13 tests
The main file in "PeproDev Ultimate Invoice" v. 1.9.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 208 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin113,055 lines of code in 673 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 527 | 13,663 | 19,241 | 91,596 |
CSS | 34 | 2,968 | 210 | 10,924 |
JavaScript | 22 | 265 | 194 | 3,051 |
Markdown | 24 | 955 | 1 | 2,436 |
PO File | 1 | 600 | 704 | 1,812 |
SVG | 32 | 4 | 0 | 1,553 |
JSON | 13 | 3 | 0 | 1,156 |
YAML | 10 | 60 | 4 | 231 |
HTML | 5 | 0 | 0 | 195 |
XML | 4 | 10 | 0 | 98 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity has to be reduced 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.50 |
Average class complexity | 45.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,024.00 |
Average method complexity | 9.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 61 | |
Interfaces | 24 | |
Traits | 6 | |
Classes | 406 | |
▷ Abstract classes | 18 | 4.43% |
▷ Concrete classes | 388 | 95.57% |
▷ Final classes | 15 | 3.87% |
Methods | 2,449 | |
▷ Static methods | 164 | 6.70% |
▷ Public methods | 2,175 | 88.81% |
▷ Protected methods | 112 | 4.57% |
▷ Private methods | 162 | 6.61% |
Functions | 73 | |
▷ Named functions | 25 | 34.25% |
▷ Anonymous functions | 48 | 65.75% |
Constants | 486 | |
▷ Global constants | 10 | 2.06% |
▷ Class constants | 476 | 97.94% |
▷ Public constants | 475 | 99.79% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
24 PNG files occupy 0.37MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/document.png | 0.23KB | 0.24KB | 0.00% |
template/default/screenshot.png | 54.76KB | 27.61KB | ▼ 49.58% |
assets/img/pepro-logo.png | 31.98KB | 12.83KB | ▼ 59.89% |
assets/img/mail-account.png | 0.36KB | 0.48KB | 0.00% |
assets/img/unpacking.png | 0.39KB | 0.52KB | 0.00% |