Benchmarks
Plugin footprint 83% 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: ▲2.80MB] [CPU: ▲21.58ms] Passed 4 tests
Analyzing server-side resources used by Sliced Invoices - WordPress Invoice Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.00 ▲2.53 | 52.10 ▲9.35 |
Dashboard /wp-admin | 6.21 ▲2.91 | 69.73 ▲20.37 |
Posts /wp-admin/edit.php | 6.28 ▲2.92 | 71.94 ▲25.18 |
Add New Post /wp-admin/post-new.php | 9.47 ▲3.58 | 124.57 ▲31.41 |
Media Library /wp-admin/upload.php | 6.08 ▲2.85 | 69.59 ▲33.94 |
Invoices /wp-admin/edit.php?post_type=sliced_invoice | 6.27 | 66.86 |
Licenses /wp-admin/admin.php?page=sliced_licenses | 6.60 | 56.59 |
Tools /wp-admin/admin.php?page=sliced_tools | 6.58 | 431.23 |
Quotes /wp-admin/edit.php?post_type=sliced_quote | 6.26 | 57.89 |
Add New Invoice /wp-admin/post-new.php?post_type=sliced_invoice | 7.76 | 89.32 |
Add New Quote /wp-admin/post-new.php?post_type=sliced_quote | 7.72 | 95.81 |
Extras /wp-admin/admin.php?page=sliced_extras | 6.60 | 62.42 |
Reports /wp-admin/admin.php?page=sliced_reports | 6.32 | 95.60 |
Settings /wp-admin/admin.php?page=sliced_invoices_settings | 6.63 | 58.77 |
Server storage [IO: ▲9.87MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 476 new files
Database: no new tables, 19 new options
New WordPress options |
---|
can_compress_scripts |
sliced_business |
sliced_unlocked |
db_upgraded |
sliced_tax |
sliced_general |
sliced_emails |
sliced_payments |
theysaidso_admin_options |
sliced_last_lock_time |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sliced Invoices - WordPress Invoice Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲129 | 14.67 ▼0.07 | 1.62 ▼0.36 | 36.85 ▼11.22 |
Dashboard /wp-admin | 2,287 ▲110 | 5.64 ▲0.08 | 91.90 ▼1.06 | 42.96 ▲4.11 |
Posts /wp-admin/edit.php | 2,225 ▲125 | 2.25 ▲0.16 | 39.25 ▼3.14 | 36.09 ▼0.20 |
Add New Post /wp-admin/post-new.php | 1,629 ▲103 | 23.10 ▲0.09 | 698.20 ▲86.98 | 37.00 ▼17.51 |
Media Library /wp-admin/upload.php | 1,510 ▲110 | 4.23 ▲0.03 | 100.67 ▲5.20 | 48.35 ▲5.95 |
Invoices /wp-admin/edit.php?post_type=sliced_invoice | 1,494 | 2.47 | 43.84 | 37.37 |
Licenses /wp-admin/admin.php?page=sliced_licenses | 1,074 | 2.37 | 42.24 | 58.26 |
Tools /wp-admin/admin.php?page=sliced_tools | 946 | 2.16 | 32.12 | 28.94 |
Quotes /wp-admin/edit.php?post_type=sliced_quote | 1,554 | 2.37 | 41.39 | 29.48 |
Add New Invoice /wp-admin/post-new.php?post_type=sliced_invoice | 4,855 | 15.85 | 313.88 | 96.08 |
Add New Quote /wp-admin/post-new.php?post_type=sliced_quote | 4,824 | 15.64 | 268.20 | 77.35 |
Extras /wp-admin/admin.php?page=sliced_extras | 1,189 | 2.41 | 38.40 | 39.17 |
Reports /wp-admin/admin.php?page=sliced_reports | 1,278 | 4.83 | 121.94 | 36.53 |
Settings /wp-admin/admin.php?page=sliced_invoices_settings | 1,209 | 2.11 | 34.72 | 33.01 |
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
- Zombie WordPress options were found after uninstall: 19 options
- sliced_quotes
- quote_status_children
- widget_recent-posts
- invoice_status_children
- theysaidso_admin_options
- sliced_last_lock_time
- widget_theysaidso_widget
- sliced_unlocked
- sliced_general
- sliced_payments
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=sliced_tools
- > Warning in wp-content/plugins/sliced-invoices/admin/includes/sliced-admin-tools.php+295
Invalid argument supplied for foreach()
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 fix the following
- 38× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/sliced-invoices/includes/vendor/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/sliced-invoices/includes/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/sliced-invoices/includes/vendor/cmb2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/sliced-invoices/includes/vendor/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/sliced-invoices/includes/vendor/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/sliced-invoices/includes/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/sliced-invoices/includes/vendor/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/sliced-invoices/includes/vendor/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/sliced-invoices/includes/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sliced-invoices/includes/vendor/cmb2/includes/helper-functions.php:131
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (21 tag instead of maximum 10)
sliced-invoices/sliced-invoices.php Passed 13 tests
The main PHP file in "Sliced Invoices - WordPress Invoice Plugin" ver. 3.9.2 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Create professional Quotes & Invoices that clients can pay for online.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin97,972 lines of code in 281 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 129 | 19,175 | 25,237 | 47,000 |
PHP | 96 | 5,618 | 11,557 | 21,294 |
JavaScript | 15 | 5,066 | 5,038 | 20,678 |
CSS | 20 | 303 | 1,249 | 6,175 |
Sass | 17 | 306 | 29 | 1,411 |
SVG | 2 | 0 | 0 | 658 |
Markdown | 1 | 161 | 0 | 640 |
JSON | 1 | 0 | 0 | 116 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 30.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 96 | |
▷ Abstract classes | 9 | 9.38% |
▷ Concrete classes | 87 | 90.62% |
▷ Final classes | 1 | 1.15% |
Methods | 1,022 | |
▷ Static methods | 220 | 21.53% |
▷ Public methods | 899 | 87.96% |
▷ Protected methods | 96 | 9.39% |
▷ Private methods | 27 | 2.64% |
Functions | 152 | |
▷ Named functions | 152 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 11 | 64.71% |
▷ Class constants | 6 | 35.29% |
▷ Public constants | 6 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.56MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendor/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
admin/img/sliced-invoices-logo.png | 7.95KB | 3.94KB | ▼ 50.45% |
includes/vendor/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
includes/vendor/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
includes/vendor/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |