Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼136.75ms] Passed 4 tests
Analyzing server-side resources used by Make Invoice - Generate & Pay Invoice Through API
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 36.09 ▲13.20 |
Dashboard /wp-admin | 3.08 ▲0.02 | 52.41 ▲8.13 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 47.20 ▲4.86 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 88.96 ▼561.65 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 33.19 ▲1.67 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Make Invoice - Generate & Pay Invoice Through API: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,835 ▲239 | 15.90 ▼0.01 | 7.97 ▼0.08 | 53.94 ▲5.55 |
Dashboard /wp-admin | 3,100 ▲166 | 6.24 ▲0.29 | 141.26 ▲1.89 | 137.58 ▲19.39 |
Posts /wp-admin/edit.php | 2,775 ▲36 | 2.70 ▲0.01 | 66.55 ▼6.30 | 61.64 ▼25.46 |
Add New Post /wp-admin/post-new.php | 1,722 ▲224 | 18.76 ▼0.01 | 361.18 ▼12.33 | 106.46 ▼10.23 |
Media Library /wp-admin/upload.php | 1,911 ▲104 | 5.06 ▲0.05 | 129.69 ▼31.97 | 99.18 ▼13.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/make-invoice-generate-pay-invoice-through-api/templates/frontend.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/make-invoice-generate-pay-invoice-through-api/templates/backend.php:16
- > PHP Notice
Undefined variable: a in wp-content/plugins/make-invoice-generate-pay-invoice-through-api/templates/frontend.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/make-invoice-generate-pay-invoice-through-api/templates/frontend.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/make-invoice-generate-pay-invoice-through-api/make-invoice-init.php:32
- > PHP Notice
Undefined variable: a in wp-content/plugins/make-invoice-generate-pay-invoice-through-api/templates/frontend.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/make-invoice-generate-pay-invoice-through-api/templates/frontend.php on line 260
- > PHP Notice
Undefined variable: a in wp-content/plugins/make-invoice-generate-pay-invoice-through-api/templates/frontend.php on line 260
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/make-invoice-generate-pay-invoice-through-api/templates/frontend.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Requires php: Version not formatted correctly
make-invoice-generate-pay-invoice-through-api/make-invoice-init.php 85% from 13 tests
The main PHP file in "Make Invoice - Generate & Pay Invoice Through API" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("make-invoice-generate-pay-invoice-through-api.php" instead of "make-invoice-init.php")
- Description: The description should be shorter than 140 characters (currently 232 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,469 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 128 | 24 | 634 |
JSON | 1 | 0 | 0 | 577 |
PHP | 4 | 51 | 310 | 172 |
CSS | 4 | 17 | 14 | 86 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin