Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5643
File upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.
Server metrics [RAM: ▼1.97MB] [CPU: ▼58.94ms] Passed 4 tests
This is a short check of server-side resources used by Smart Invoice and Billing Management Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.75 ▼38.60 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.34 ▼59.04 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.66 ▼46.66 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.21 ▼91.47 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.10 ▼29.40 |
How To Use /wp-admin/admin.php?page=smartinvoice_menu_page | 2.05 | 10.17 |
Create Invoice /wp-admin/admin.php?page=invoice_menu | 2.05 | 6.23 |
Invoice Status /wp-admin/admin.php?page=invoice_status | 2.05 | 5.03 |
Add New Client /wp-admin/admin.php?page=invoice_add_client | 2.05 | 6.02 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 20 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_sherkinvoice |
wp_sherkclient |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Smart Invoice and Billing Management Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲116 | 14.07 ▼0.47 | 2.17 ▲0.33 | 44.29 ▼6.44 |
Dashboard /wp-admin | 2,228 ▲51 | 5.61 ▲0.03 | 93.45 ▼6.44 | 41.22 ▼1.00 |
Posts /wp-admin/edit.php | 2,130 ▲33 | 2.00 ▼0.03 | 38.63 ▲1.03 | 34.73 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 22.91 ▼0.22 | 619.26 ▼88.32 | 57.18 ▲5.11 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.30 ▲0.11 | 104.24 ▲2.08 | 45.29 ▼0.91 |
How To Use /wp-admin/admin.php?page=smartinvoice_menu_page | 1,122 | 2.03 | 26.22 | 45.30 |
Create Invoice /wp-admin/admin.php?page=invoice_menu | 799 | 2.15 | 24.27 | 26.22 |
Invoice Status /wp-admin/admin.php?page=invoice_status | 815 | 2.02 | 24.62 | 32.31 |
Add New Client /wp-admin/admin.php?page=invoice_add_client | 865 | 2.03 | 25.80 | 29.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5643
File upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_sherkinvoice
- wp_sherkclient
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=invoice_add_client
- > User deprecated in wp-includes/functions.php+5643
File upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=invoice_add_client
- > Deprecated in wp-includes/class-wp-hook.php+308
Non-static method SherkInvoice::enable() should not be called statically
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=invoice_add_client
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method SherkInvoiceMenu::setupMenu() should not be called statically
- 16 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=invoice_add_client
- > Warning in wp-content/plugins/smart-invoice-and-billing-management/classes/Menu.php+13
Use of undefined constant SherkInvoiceMenu - assumed 'SherkInvoiceMenu' (this will throw an Error in a future version of PHP)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=invoice_add_client
- > Deprecated in wp-includes/class-wp-hook.php+308
Non-static method SherkInvoice::addJsScripts() should not be called statically
- > GET request to /wp-admin/admin.php?page=smartinvoice_menu_page
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method SherkInvoiceMenu::smartinvoice_menu_page() should not be called statically
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=invoice_add_client
- > Deprecated in wp-content/plugins/smart-invoice-and-billing-management/includes/addnewclient.php+5
Non-static method SherkInvoice::getBaseDir() should not be called statically
- > GET request to /wp-admin/admin.php?page=invoice_menu
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method SherkInvoiceMenu::create_invoice() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=invoice_status
- > Notice in wp-content/plugins/smart-invoice-and-billing-management/includes/invoicestatus.php+20
Undefined index: submit
- > GET request to /wp-admin/admin.php?page=invoice_menu
- > Deprecated in wp-content/plugins/smart-invoice-and-billing-management/includes/createinvoice.php+17
Non-static method SherkInvoiceHelperFunctions::getDefaultInvoiceValue() should not be called statically
- > GET request to /wp-admin/admin.php?page=invoice_menu
- > Notice in wp-content/plugins/smart-invoice-and-billing-management/classes/HelperFunctions.php+19
Undefined offset: 0
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=invoice_status
- > Notice in wp-content/plugins/smart-invoice-and-billing-management/includes/invoicestatus.php+32
Undefined variable: msg
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=invoice_add_client
- > Deprecated in wp-content/plugins/smart-invoice-and-billing-management/includes/addnewclient.php+66
Non-static method SherkInvoiceHelperFunctions::getAllTableData() should not be called statically
- > GET request to /wp-admin/admin.php?page=invoice_status
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method SherkInvoiceMenu::invoice_status() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=invoice_add_client
- > Notice in wp-content/plugins/smart-invoice-and-billing-management/includes/addnewclient.php+8
Undefined index: action
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=invoice_add_client
- > Notice in wp-content/plugins/smart-invoice-and-billing-management/includes/addnewclient.php+43
Undefined index: id
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=invoice_status
- > Deprecated in wp-content/plugins/smart-invoice-and-billing-management/includes/invoicestatus.php+139
Non-static method SherkInvoiceHelperFunctions::getTableDataStatus() should not be called statically
- > GET request to /wp-admin/admin.php?page=invoice_add_client
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method SherkInvoiceMenu::invoice_add_client() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=invoice_add_client
- > Notice in wp-content/plugins/smart-invoice-and-billing-management/includes/addnewclient.php+46
Undefined index: name
- > GET request to /wp-admin/admin.php?page=invoice_add_client
- > Notice in wp-content/plugins/smart-invoice-and-billing-management/includes/addnewclient.php+49
Undefined index: email
- > GET request to /wp-admin/admin.php?page=invoice_add_client
- > Notice in wp-content/plugins/smart-invoice-and-billing-management/includes/addnewclient.php+52
Undefined index: company
- > GET request to /wp-admin/admin.php?page=invoice_add_client
- > Notice in wp-content/plugins/smart-invoice-and-billing-management/includes/addnewclient.php+55
Undefined index: address
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/upgrade-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/smart-invoice-and-billing-management/database/Install.php on line 3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/smart-invoice-and-billing-management/includes/Constants.php on line 9
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/smart-invoice-and-billing-management/includes/Constants.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'SherkInvoice' not found in wp-content/plugins/smart-invoice-and-billing-management/templates/smartinvoice_dashboard.php:60
- > PHP Fatal error
Uncaught Error: Class 'SherkInvoice' not found in wp-content/plugins/smart-invoice-and-billing-management/includes/createinvoice.php:5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/smart-invoice-and-billing-management/database/Install.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/smart-invoice-and-billing-management/database/Install.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/upgrade-functions.php): failed to open stream: No such file or directory in wp-content/plugins/smart-invoice-and-billing-management/database/Install.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/upgrade-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/smart-invoice-and-billing-management/database/Install.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'SherkInvoice' not found in wp-content/plugins/smart-invoice-and-billing-management/includes/invoicestatus.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
smart-invoice-and-billing-management/SherkInvoice.php 92% from 13 tests
"Smart Invoice and Billing Management Plugin" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("smart-invoice-and-billing-management.php" instead of "SherkInvoice.php")
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
Good job! No executable or dangerous file extensions detected1,104 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 198 | 55 | 660 |
JavaScript | 1 | 33 | 29 | 421 |
CSS | 1 | 5 | 1 | 23 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 1 | 3.57% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
5 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
files/invoicestatus.png | 18.10KB | 7.14KB | ▼ 60.57% |
files/createinvoice.png | 7.75KB | 2.52KB | ▼ 67.45% |
files/addclient.png | 15.15KB | 5.12KB | ▼ 66.25% |
images/logo.png | 49.81KB | 14.78KB | ▼ 70.33% |
files/sherkspear.png | 8.81KB | 3.86KB | ▼ 56.22% |