Benchmarks
Plugin footprint 83% 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: ▲0.24MB] [CPU: ▼4.90ms] Passed 4 tests
Analyzing server-side resources used by Invoice Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 42.19 ▼11.84 |
Dashboard /wp-admin | 3.55 ▲0.24 | 50.12 ▼3.78 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 52.49 ▲1.93 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 98.64 ▼4.06 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 39.40 ▲0.07 |
Add New /wp-admin/post-new.php?post_type=pravel_shop_product | 3.51 | 48.07 |
All Product /wp-admin/edit.php?post_type=pravel_shop_product | 3.51 | 38.34 |
All Invoice /wp-admin/edit.php?post_type=pravel_invoice | 3.51 | 40.53 |
Add New /wp-admin/post-new.php?post_type=pravel_invoice | 3.59 | 50.54 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
plugin_error |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Invoice Generator: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,029 ▲268 | 14.47 ▲0.07 | 22.01 ▲20.10 | 38.26 ▼5.69 |
Dashboard /wp-admin | 2,248 ▲71 | 5.53 ▼0.05 | 84.51 ▼20.49 | 41.51 ▼2.25 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 1.99 ▼0.00 | 40.20 ▲4.32 | 35.85 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,577 ▲49 | 23.61 ▲0.41 | 669.25 ▼24.29 | 56.72 ▼1.40 |
Media Library /wp-admin/upload.php | 1,459 ▲59 | 4.12 ▲0.02 | 105.33 ▼11.23 | 44.39 ▼4.88 |
Add New /wp-admin/post-new.php?post_type=pravel_shop_product | 1,629 | 2.54 | 53.50 | 53.58 |
All Product /wp-admin/edit.php?post_type=pravel_shop_product | 1,137 | 1.95 | 31.36 | 30.37 |
All Invoice /wp-admin/edit.php?post_type=pravel_invoice | 1,113 | 1.96 | 31.22 | 28.44 |
Add New /wp-admin/post-new.php?post_type=pravel_invoice | 2,318 | 7.66 | 174.23 | 63.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- plugin_error
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/invoice-creator/template/invoice-form.php:333
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/invoice-creator/template/registration.php:96
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/invoice-creator/template/forgot-password.php:90
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/invoice-creator/lib/user-manage-function.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/invoice-creator/template/shop-product.php:161
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/invoice-creator/lib/core-function.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/invoice-creator/index.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/invoice-creator/lib/new-post-type.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/invoice-creator/template/login.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/invoice-creator/template/edit-account.php:121
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in invoice-creator/assets to your readme.txt
- Tags: There are too many tags (17 tag instead of maximum 10)
invoice-creator/index.php 92% from 13 tests
"Invoice Generator" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("invoice-creator.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin8,444 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,993 | 6,999 | 6,452 |
PHP | 10 | 205 | 26 | 1,576 |
CSS | 2 | 3 | 30 | 416 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_454545_256x240.png | 3.69KB | 4.18KB | 0.00% |
assets/css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
assets/css/images/print-icon.png | 16.17KB | 5.80KB | ▼ 64.15% |
assets/image/logo.png | 9.05KB | 3.36KB | ▼ 62.86% |
assets/css/images/ui-icons_222222_256x240.png | 3.69KB | 4.18KB | 0.00% |