Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.62ms] Passed 4 tests
Server-side resources used by Sequential Invoice numbers
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.80 ▼3.85 |
Dashboard /wp-admin | 3.31 ▲0.00 | 61.97 ▲9.10 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.63 ▲2.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 98.03 ▼9.02 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.83 ▲3.43 |
Server storage [IO: ▲0.07MB] [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: 22 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_artofdata_order_invoice |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
aodsi_first_si_number |
Browser metrics Passed 4 tests
A check of browser resources used by Sequential Invoice numbers
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.28 ▼1.03 | 1.67 ▼0.23 | 44.39 ▲0.46 |
Dashboard /wp-admin | 2,209 ▲21 | 5.90 ▲0.87 | 136.90 ▲30.73 | 67.02 ▲21.41 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.05 | 42.89 ▲4.21 | 35.29 ▲3.59 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 18.38 ▲0.76 | 625.12 ▼23.61 | 73.16 ▲6.93 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.11 ▼0.12 | 108.18 ▲6.92 | 52.50 ▲8.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sequential-invoice-numbers/templates/Dashboard.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sequential-invoice-numbers/includes/woocommerce-settings.php:211
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/sequential-invoice-numbers/includes/table-exists.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/sequential-invoice-numbers/includes/table-exists.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sequential-invoice-numbers/includes/woo-si-order-info.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: sequential invoice numbers, invoicing, woocommerce, accounts
sequential-invoice-numbers/sequential-invoice-numbers.php 92% from 13 tests
The principal PHP file in "Sequential Invoice numbers" v. 1.0.2 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,021 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 442 | 149 | 837 |
PO File | 1 | 38 | 41 | 125 |
JavaScript | 2 | 10 | 5 | 33 |
CSS | 2 | 1 | 4 | 25 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 2 | 10.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin