Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.20MB] [CPU: ▼151.29ms] Passed 4 tests
Analyzing server-side resources used by Generate User Invoices
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.23 | 34.92 ▲13.67 |
Dashboard /wp-admin | 3.20 ▲0.15 | 43.79 ▼3.40 |
Posts /wp-admin/edit.php | 3.29 ▲0.18 | 42.45 ▼4.42 |
Add New Post /wp-admin/post-new.php | 4.18 ▼1.25 | 46.89 ▼601.45 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 34.99 ▲4.12 |
Invoice Settings /wp-admin/edit.php?post_type=wpza_gui__invoice&page=wpza_gui__plugin_settings | 3.18 | 37.45 |
All Invoices /wp-admin/edit.php?post_type=wpza_gui__invoice | 3.19 | 36.47 |
Generate Invoices /wp-admin/edit.php?post_type=wpza_gui__invoice&page=wpza_gui__generate_invoice | 3.11 | 31.47 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Generate User Invoices
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,740 ▲144 | 15.82 ▲0.32 | 8.99 ▼0.07 | 44.18 ▼0.67 |
Dashboard /wp-admin | 3,028 ▲94 | 5.94 ▲0.01 | 165.78 ▲21.59 | 108.28 ▼3.54 |
Posts /wp-admin/edit.php | 2,800 ▲61 | 2.70 ▲0.01 | 63.27 ▼1.81 | 88.08 ▼0.65 |
Add New Post /wp-admin/post-new.php | 1,695 ▲12 | 18.99 ▲0.22 | 373.19 ▼18.98 | 112.36 ▲6.86 |
Media Library /wp-admin/upload.php | 1,872 ▲59 | 5.04 ▲0.05 | 148.65 ▼5.12 | 105.86 ▼6.55 |
Invoice Settings /wp-admin/edit.php?post_type=wpza_gui__invoice&page=wpza_gui__plugin_settings | 2,048 | 7.09 | 155.29 | 121.44 |
All Invoices /wp-admin/edit.php?post_type=wpza_gui__invoice | 1,486 | 2.64 | 61.10 | 73.90 |
Generate Invoices /wp-admin/edit.php?post_type=wpza_gui__invoice&page=wpza_gui__generate_invoice | 1,060 | 2.10 | 54.57 | 61.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/generate-user-invoices/templates/single-invoice.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/generate-user-invoices/templates/archive-invoice.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: multiple invoices, user invoices, generate invoices, bulk invoices, invoice
generate-user-invoices/wpza_gui.php 92% from 13 tests
Analyzing the main PHP file in "Generate User Invoices" version 1.0.0
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("generate-user-invoices.php" instead of "wpza_gui.php")
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 plugin815 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 51 | 12 | 815 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 33.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 66.67% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin