Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲6.94MB] [CPU: ▲85.20ms] 25% from 4 tests
An overview of server-side resources used by Payment forms, Buy now buttons and Invoicing System | GetPaid
The following require your attention
- RAM: You should keep total memory usage under 10MB (currently 10.51MB on /wp-admin/edit.php?post_type=wpi_invoice)
- CPU: Total CPU usage must kept under 500.00ms (currently 527.65ms on /wp-admin/admin.php?page=wpinv-reports)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 6.94MB on /wp-admin/edit.php?post_type=wpi_invoice)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.84 ▲6.38 | 114.52 ▲71.89 |
Dashboard /wp-admin | 10.44 ▲7.09 | 130.64 ▲72.39 |
Posts /wp-admin/edit.php | 10.50 ▲7.14 | 112.97 ▲66.31 |
Add New Post /wp-admin/post-new.php | 14.35 ▲8.47 | 222.99 ▲130.20 |
Media Library /wp-admin/upload.php | 10.38 ▲7.15 | 2,075.23 ▲2,041.37 |
Extensions /wp-admin/admin.php?page=wpi-addons | 11.10 | 2,581.66 |
Discounts /wp-admin/edit.php?post_type=wpi_discount | 10.51 | 512.14 |
Settings /wp-admin/admin.php?page=wpinv-settings | 11.73 | 533.78 |
Font Awesome /wp-admin/options-general.php?page=wp-font-awesome-settings | 10.52 | 100.28 |
Items /wp-admin/edit.php?post_type=wpi_item | 10.51 | 100.90 |
AyeCode UI /wp-admin/options-general.php?page=ayecode-ui-settings | 10.66 | 512.32 |
Payment Forms /wp-admin/edit.php?post_type=wpi_payment_form | 10.68 | 112.69 |
Reports /wp-admin/admin.php?page=wpinv-reports | 10.77 | 527.65 |
Subscriptions /wp-admin/admin.php?page=wpinv-subscriptions | 10.79 | 104.12 |
Invoices /wp-admin/edit.php?post_type=wpi_invoice | 10.51 | 101.87 |
Server storage [IO: ▲14.37MB] [DB: ▲0.14MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 930 new files
Database: 5 new tables, 25 new options
New tables |
---|
wp_getpaid_invoice_items |
wp_wpinv_subscriptions |
wp_getpaid_invoices |
wp_getpaid_customer_meta |
wp_getpaid_customers |
New WordPress options |
---|
wpinv_tax_rates |
wpinv_maxmind_database_prefix |
wpinv_default_payment_form |
widget_getpaid |
theysaidso_admin_options |
widget_recent-comments |
wpinv_version |
can_compress_scripts |
gepaid_installed_on |
wpinv_cleared_old_events |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Payment forms, Buy now buttons and Invoicing System | GetPaid
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,061 ▲299 | 14.36 ▲0.02 | 18.95 ▲17.32 | 42.60 ▼3.40 |
Dashboard /wp-admin | 2,297 ▲120 | 5.60 ▲0.04 | 90.57 ▼9.46 | 40.72 ▼5.65 |
Posts /wp-admin/edit.php | 2,205 ▲102 | 1.94 ▲0.01 | 39.38 ▼3.25 | 35.74 ▲1.88 |
Add New Post /wp-admin/post-new.php | 1,558 ▲29 | 18.85 ▼4.80 | 583.22 ▼74.32 | 49.86 ▼4.66 |
Media Library /wp-admin/upload.php | 1,509 ▲106 | 4.12 ▼0.07 | 102.09 ▲5.16 | 41.66 ▼2.83 |
Extensions /wp-admin/admin.php?page=wpi-addons | 1,581 | 2.42 | 58.48 | 41.29 |
Discounts /wp-admin/edit.php?post_type=wpi_discount | 1,255 | 2.47 | 59.71 | 27.86 |
Settings /wp-admin/admin.php?page=wpinv-settings | 2,443 | 2.46 | 53.09 | 30.53 |
Font Awesome /wp-admin/options-general.php?page=wp-font-awesome-settings | 1,185 | 2.02 | 24.50 | 39.28 |
Items /wp-admin/edit.php?post_type=wpi_item | 1,257 | 2.41 | 51.27 | 28.82 |
AyeCode UI /wp-admin/options-general.php?page=ayecode-ui-settings | 1,162 | 2.24 | 33.14 | 33.58 |
Payment Forms /wp-admin/edit.php?post_type=wpi_payment_form | 1,770 | 2.45 | 52.96 | 32.36 |
Reports /wp-admin/admin.php?page=wpinv-reports | 2,161 | 5.56 | 194.81 | 56.85 |
Subscriptions /wp-admin/admin.php?page=wpinv-subscriptions | 1,225 | 2.53 | 51.05 | 34.81 |
Invoices /wp-admin/edit.php?post_type=wpi_invoice | 1,218 | 2.41 | 61.30 | 31.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.14MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables were found after uninstall: 5 tables
- wp_getpaid_customer_meta
- wp_getpaid_customers
- wp_wpinv_subscriptions
- wp_getpaid_invoice_items
- wp_getpaid_invoices
- This plugin does not fully uninstall, leaving 26 options in the database
- widget_getpaid
- wpinv_cleared_old_events
- widget_getpaid_invoice
- widget_recent-posts
- wpinv_version
- wpinv_flush_permalinks
- gepaid_installed_on
- wpinv_tax_rates
- widget_wpinv_history
- getpaid_flushed_rewrite_rules
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpinv-reports
- > Notice in wp-content/plugins/invoicing/includes/api/class-getpaid-rest-date-based-controller.php+124
A non well formed numeric value encountered
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/invoicing/vendor/ayecode/wp-ayecode-ui/includes/inc/bs5-js.php
- > /wp-content/plugins/invoicing/templates/emails/wpinv-email-billing-details.php
- > /wp-content/plugins/invoicing/templates/emails/wpinv-email-footer.php
- > /wp-content/plugins/invoicing/templates/payment-forms/elements/protected.php
- > /wp-content/plugins/invoicing/templates/emails/wpinv-email-header.php
- 110× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/invoicing/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/invoicing/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/invoicing/vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/invoicing/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/invoicing/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/invoicing/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/invoicing/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/invoicing/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/invoicing/vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/invoicing/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: stripe, payments, invoice, checkout form, payments form builder...
invoicing/invoicing.php Passed 13 tests
Analyzing the main PHP file in "Payment forms, Buy now buttons and Invoicing System | GetPaid" version 2.8.1
62 characters long description:
A lightweight and VAT compliant payments and invoicing plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected147,525 lines of code in 843 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 458 | 15,980 | 24,500 | 60,442 |
JavaScript | 38 | 8,319 | 5,939 | 44,859 |
Sass | 315 | 5,306 | 6,403 | 26,040 |
PO File | 1 | 3,633 | 4,352 | 7,887 |
SVG | 9 | 0 | 12 | 4,938 |
CSS | 13 | 166 | 159 | 1,781 |
C | 1 | 97 | 18 | 589 |
JSON | 1 | 0 | 0 | 482 |
Markdown | 3 | 86 | 0 | 400 |
XML | 2 | 17 | 2 | 67 |
m4 | 1 | 8 | 0 | 32 |
C/C++ Header | 1 | 4 | 12 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 20.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 540.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 255 | |
▷ Abstract classes | 9 | 3.53% |
▷ Concrete classes | 246 | 96.47% |
▷ Final classes | 1 | 0.41% |
Methods | 2,368 | |
▷ Static methods | 292 | 12.33% |
▷ Public methods | 2,101 | 88.72% |
▷ Protected methods | 171 | 7.22% |
▷ Private methods | 96 | 4.05% |
Functions | 840 | |
▷ Named functions | 827 | 98.45% |
▷ Anonymous functions | 13 | 1.55% |
Constants | 76 | |
▷ Global constants | 45 | 59.21% |
▷ Class constants | 31 | 40.79% |
▷ Public constants | 31 | 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
9 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/Quotes-1-768x384.png | 63.14KB | 25.80KB | ▼ 59.14% |
includes/images/t-image1.png | 6.14KB | 3.17KB | ▼ 48.31% |
assets/images/ui-icons_333333_256x240.png | 3.62KB | 4.11KB | 0.00% |
assets/images/ui-icons_21759b_256x240.png | 3.62KB | 4.11KB | 0.00% |
assets/images/getpaid-logo.png | 4.60KB | 2.44KB | ▼ 46.99% |