Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.54MB] [CPU: ▲4.00ms] Passed 4 tests
An overview of server-side resources used by Billy
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.59 | 49.00 ▲7.17 |
Dashboard /wp-admin | 3.87 ▲0.52 | 57.86 ▼5.35 |
Posts /wp-admin/edit.php | 3.92 ▲0.55 | 61.27 ▲15.61 |
Add New Post /wp-admin/post-new.php | 6.78 ▲0.89 | 98.26 ▲2.06 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 48.25 ▲12.13 |
Add New /wp-admin/post-new.php?post_type=billy-invoice | 6.78 | 92.94 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=billy-accounting | 3.73 | 54.70 |
Invoices /wp-admin/edit.php?post_type=billy-invoice | 3.84 | 50.34 |
Add New /wp-admin/post-new.php?post_type=billy-accounting | 6.77 | 96.90 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=billy-invoice | 3.74 | 47.27 |
Accounting /wp-admin/edit.php?post_type=billy-accounting | 3.84 | 50.10 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=billy-quote | 3.74 | 44.95 |
Add New /wp-admin/post-new.php?post_type=billy-quote | 6.77 | 92.79 |
Quotes /wp-admin/edit.php?post_type=billy-quote | 3.84 | 47.84 |
Server storage [IO: ▲6.26MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 633 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
category_children |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics 75% from 4 tests
Checking browser requirements for Billy
Please improve the following
- Script duration: JavaScript execution time must be kept under 1,500.00ms (currently 1,507.11ms on /wp-admin/post-new.php?post_type=billy-invoice)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,179 ▲432 | 14.57 ▲0.44 | 1.75 ▲0.02 | 43.17 ▼0.52 |
Dashboard /wp-admin | 2,535 ▲358 | 5.62 ▼0.05 | 90.57 ▼12.31 | 77.72 ▲30.14 |
Posts /wp-admin/edit.php | 2,293 ▲190 | 2.04 ▲0.06 | 38.05 ▲1.41 | 33.66 ▲0.33 |
Add New Post /wp-admin/post-new.php | 6,277 ▲4,751 | 19.25 ▼3.97 | 947.45 ▲247.24 | 62.86 ▼0.01 |
Media Library /wp-admin/upload.php | 1,658 ▲264 | 4.21 ▲0.04 | 103.56 ▲3.19 | 42.83 ▼3.73 |
Add New /wp-admin/post-new.php?post_type=billy-invoice | 11,392 | 33.69 | 1,507.11 | 75.43 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=billy-accounting | 1,650 | 2.13 | 31.26 | 32.43 |
Invoices /wp-admin/edit.php?post_type=billy-invoice | 1,295 | 1.92 | 34.67 | 31.79 |
Add New /wp-admin/post-new.php?post_type=billy-accounting | 1,637 | 18.53 | 891.28 | 42.33 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=billy-invoice | 1,650 | 2.13 | 27.95 | 32.70 |
Accounting /wp-admin/edit.php?post_type=billy-accounting | 1,295 | 1.93 | 31.07 | 31.28 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=billy-quote | 1,653 | 2.14 | 28.98 | 34.91 |
Add New /wp-admin/post-new.php?post_type=billy-quote | 1,743 | 23.56 | 1,121.82 | 59.71 |
Quotes /wp-admin/edit.php?post_type=billy-quote | 1,295 | 1.93 | 30.59 | 31.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- category_children
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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 237× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'setasign\\Fpdi\\PdfParser\\Filter\\FilterInterface' not found in wp-content/plugins/billy/vendor/setasign/fpdi/src/PdfParser/Filter/Lzw.php:16
- > PHP Fatal error
Trait 'Mpdf\\Strict' not found in wp-content/plugins/billy/vendor/mpdf/mpdf/src/Writer/JavaScriptWriter.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\MpdfException' not found in wp-content/plugins/billy/vendor/mpdf/mpdf/src/Exception/AssetFetchingException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/billy/vendor/mpdf/mpdf/src/Tag/WatermarkText.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Mpdf\\Http\\ClientInterface' not found in wp-content/plugins/billy/vendor/mpdf/mpdf/src/Http/SocketHttpClient.php:12
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\FormFeed' not found in wp-content/plugins/billy/vendor/mpdf/mpdf/src/Tag/NewPage.php:5
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/billy/vendor/psr/log/src/NullLogger.php on line 26
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/billy/vendor/mpdf/mpdf/src/Tag/H3.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/billy/vendor/mpdf/mpdf/src/Tag/Samp.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/billy/vendor/mpdf/mpdf/src/Tag/I.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/edit-tags.php?taxonomy=category&post_type=billy-accounting
- > Intervention (severe) in unknown
/wp-admin/post-new.php?post_type=billy-invoice - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
- > GET request to /wp-admin/edit-tags.php?taxonomy=category&post_type=billy-invoice
- > Intervention (severe) in unknown
/wp-admin/post-new.php?post_type=billy-accounting - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
- > GET request to /wp-admin/edit.php?post_type=billy-quote
- > Intervention (severe) in unknown
/wp-admin/post-new.php?post_type=billy-quote - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: accounting, invoices, quotes, billing
billy/billy.php Passed 13 tests
The entry point to "Billy" version 1.6.4 is a PHP file that has certain tags in its header comment area
55 characters long description:
A business-oriented billing suite powered by WordPress.
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
Everything looks great! No dangerous files found in this plugin82,816 lines of code in 472 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 429 | 12,251 | 13,538 | 78,925 |
Markdown | 17 | 556 | 0 | 1,594 |
CSS | 6 | 111 | 25 | 1,040 |
JSON | 11 | 0 | 0 | 862 |
PO File | 1 | 119 | 264 | 301 |
XML | 4 | 12 | 1 | 89 |
Bourne Shell | 1 | 2 | 0 | 3 |
JavaScript | 3 | 0 | 2 | 2 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 7,027)
- 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 | 54.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,027.00 |
Average method complexity | 12.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 51 | |
Interfaces | 26 | |
Traits | 9 | |
Classes | 305 | |
▷ Abstract classes | 8 | 2.62% |
▷ Concrete classes | 297 | 97.38% |
▷ Final classes | 15 | 5.05% |
Methods | 1,661 | |
▷ Static methods | 156 | 9.39% |
▷ Public methods | 1,445 | 87.00% |
▷ Protected methods | 63 | 3.79% |
▷ Private methods | 153 | 9.21% |
Functions | 42 | |
▷ Named functions | 13 | 30.95% |
▷ Anonymous functions | 29 | 69.05% |
Constants | 442 | |
▷ Global constants | 10 | 2.26% |
▷ Class constants | 432 | 97.74% |
▷ Public constants | 432 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/myclabs/deep-copy/doc/deep-clone.png | 13.68KB | 6.54KB | ▼ 52.22% |
vendor/myclabs/deep-copy/doc/clone.png | 12.09KB | 5.48KB | ▼ 54.70% |
assets/img/logo.png | 2.48KB | 2.52KB | 0.00% |
vendor/myclabs/deep-copy/doc/graph.png | 6.29KB | 3.03KB | ▼ 51.86% |
vendor/myclabs/deep-copy/doc/deep-copy.png | 10.64KB | 5.23KB | ▼ 50.84% |