Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.59MB] [CPU: ▼142.70ms] Passed 4 tests
An overview of server-side resources used by InvoiceEM - Portable WordPress Invoicing
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.30 ▲1.46 | 47.98 ▲13.16 |
Dashboard /wp-admin | 4.75 ▲1.69 | 58.91 ▲9.31 |
Posts /wp-admin/edit.php | 4.80 ▲1.68 | 57.32 ▼19.34 |
Add New Post /wp-admin/post-new.php | 7.04 ▲1.60 | 109.10 ▼568.75 |
Media Library /wp-admin/upload.php | 4.62 ▲1.62 | 42.90 ▲7.98 |
Payments /wp-admin/admin.php?page=invoiceem_payments | 5.16 | 56.02 |
Edit Currency /wp-admin/admin.php?page=invoiceem_currencies | 4.50 | 38.85 |
Settings /wp-admin/admin.php?page=invoiceem_settings | 5.03 | 50.17 |
Invoices /wp-admin/admin.php?page=invoiceem_invoices | 5.21 | 46.84 |
Projects /wp-admin/admin.php?page=invoiceem_projects | 5.12 | 43.26 |
Reporting /wp-admin/admin.php?page=invoiceem_reporting | 4.94 | 55.60 |
Edit Country /wp-admin/admin.php?page=invoiceem_countries | 4.50 | 41.24 |
Add Invoice /wp-admin/admin.php?page=invoiceem_invoices&action=add | 5.35 | 48.70 |
Extensions /wp-admin/admin.php?page=invoiceem_extensions | 4.90 | 52.95 |
Add Payment /wp-admin/admin.php?page=invoiceem_payments&action=add | 5.01 | 47.89 |
Server storage [IO: ▲3.54MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 361 new files
Database: 7 new tables, 2 new options
New tables |
---|
wp_iem_payments |
wp_iem_currencies |
wp_iem_countries |
wp_iem_clients |
wp_iem_invoices |
wp_iem_projects |
wp_iem_payment_invoices |
New WordPress options |
---|
invoiceem_settings_company |
invoiceem_version |
Browser metrics Passed 4 tests
A check of browser resources used by InvoiceEM - Portable WordPress Invoicing
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,767 ▲130 | 16.14 ▲0.22 | 7.98 ▼2.12 | 48.89 ▲1.68 |
Dashboard /wp-admin | 3,036 ▲102 | 5.89 ▼0.09 | 148.35 ▼8.67 | 112.95 ▼10.20 |
Posts /wp-admin/edit.php | 2,803 ▲64 | 2.70 ▲0.01 | 66.81 ▼13.68 | 93.54 ▼37.14 |
Add New Post /wp-admin/post-new.php | 1,644 ▼39 | 18.85 ▲0.41 | 370.16 ▼27.26 | 110.22 ▼1.75 |
Media Library /wp-admin/upload.php | 1,871 ▲64 | 5.03 ▲0.03 | 158.75 ▲13.01 | 126.36 ▲5.55 |
Payments /wp-admin/admin.php?page=invoiceem_payments | 1,593 | 3.49 | 94.43 | 87.04 |
Edit Currency /wp-admin/admin.php?page=invoiceem_currencies | 28 | 0.90 | 0.07 | 13.26 |
Settings /wp-admin/admin.php?page=invoiceem_settings | 1,942 | 5.12 | 111.97 | 104.60 |
Invoices /wp-admin/admin.php?page=invoiceem_invoices | 1,682 | 3.41 | 105.30 | 81.59 |
Projects /wp-admin/admin.php?page=invoiceem_projects | 1,612 | 3.21 | 93.97 | 83.26 |
Reporting /wp-admin/admin.php?page=invoiceem_reporting | 1,776 | 4.66 | 150.18 | 106.18 |
Edit Country /wp-admin/admin.php?page=invoiceem_countries | 28 | 0.90 | 0.06 | 11.65 |
Add Invoice /wp-admin/admin.php?page=invoiceem_invoices&action=add | 2,562 | 4.39 | 152.21 | 123.67 |
Extensions /wp-admin/admin.php?page=invoiceem_extensions | 1,749 | 3.57 | 82.18 | 140.67 |
Add Payment /wp-admin/admin.php?page=invoiceem_payments&action=add | 1,890 | 3.58 | 127.53 | 107.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables detected upon uninstall: 7 tables
- wp_iem_countries
- wp_iem_currencies
- wp_iem_payments
- wp_iem_invoices
- wp_iem_clients
- wp_iem_projects
- wp_iem_payment_invoices
- Zombie WordPress options detected upon uninstall: 2 options
- invoiceem_settings_company
- invoiceem_version
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)
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=invoiceem_currencies
- > Network (severe)
wp-admin/admin.php?page=invoiceem_currencies - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=invoiceem_countries
- > Network (severe)
wp-admin/admin.php?page=invoiceem_countries - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: invoicing, sliced, freelancer, payments, business...
invoiceem/invoiceem.php Passed 13 tests
Analyzing the main PHP file in "InvoiceEM - Portable WordPress Invoicing" version 1.0.6
140 characters long description:
InvoiceEM is the portable WordPress invoicing plugin. All records are stored in custom database tables instead of mixing records with posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected52,437 lines of code in 336 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 268 | 5,814 | 5,256 | 28,297 |
PHP | 54 | 3,600 | 7,724 | 17,087 |
CSS | 8 | 973 | 77 | 5,298 |
JSON | 3 | 0 | 0 | 1,715 |
Markdown | 3 | 12 | 0 | 40 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 45.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 199.00 |
Average method complexity | 5.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 4 | 9.09% |
▷ Concrete classes | 40 | 90.91% |
▷ Final classes | 40 | 100.00% |
Methods | 428 | |
▷ Static methods | 91 | 21.26% |
▷ Public methods | 303 | 70.79% |
▷ Protected methods | 69 | 16.12% |
▷ Private methods | 56 | 13.08% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 251 | |
▷ Global constants | 1 | 0.40% |
▷ Class constants | 250 | 99.60% |
▷ Public constants | 250 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.30MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendor/jquery-ui/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png | 0.32KB | 0.16KB | ▼ 50.46% |
assets/debug/images/robert-noakes.png | 2.91KB | 2.87KB | ▼ 1.34% |
assets/debug/images/YourWordPressDXP300x600.png | 136.86KB | 60.69KB | ▼ 55.65% |
assets/vendor/jquery-ui/themes/smoothness/images/ui-icons_2e83ff_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/vendor/jquery-ui/themes/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |