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.09MB] [CPU: ▼1.80ms] Passed 4 tests
Analyzing server-side resources used by WP Invoices Ultimate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.88 ▼1.41 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.90 ▼3.79 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 49.66 ▲3.28 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 82.61 ▼5.27 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.26 ▲5.04 |
Invoices /wp-admin/edit.php?post_type=wpiu-invoices | 3.37 | 36.12 |
Add New /wp-admin/post-new.php?post_type=wpiu-invoices | 3.40 | 43.11 |
Invoice IPN Log /wp-admin/edit.php?post_type=wpiu-invoices&page=wp_iu_log | 3.29 | 31.72 |
Invoice Options /wp-admin/edit.php?post_type=wpiu-invoices&page=wp_iu | 3.26 | 29.93 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Invoices Ultimate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲80 | 13.24 ▼1.51 | 4.23 ▲2.12 | 40.59 ▼6.03 |
Dashboard /wp-admin | 2,243 ▲55 | 5.79 ▲0.92 | 102.98 ▼11.32 | 77.98 ▲35.21 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.01 ▼0.05 | 38.69 ▲2.41 | 34.21 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,554 ▲40 | 17.74 ▲0.14 | 687.47 ▲4.62 | 54.51 ▼4.45 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.14 ▼0.02 | 114.93 ▲14.44 | 46.56 ▲2.14 |
Invoices /wp-admin/edit.php?post_type=wpiu-invoices | 1,262 | 2.02 | 35.00 | 32.36 |
Add New /wp-admin/post-new.php?post_type=wpiu-invoices | 2,788 | 7.96 | 198.50 | 132.66 |
Invoice IPN Log /wp-admin/edit.php?post_type=wpiu-invoices&page=wp_iu_log | 953 | 1.69 | 26.57 | 28.24 |
Invoice Options /wp-admin/edit.php?post_type=wpiu-invoices&page=wp_iu | 2,225 | 7.94 | 145.47 | 127.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=wpiu-invoices
- > Warning in wp-content/plugins/wp-invoice-ultimate/wp-invoice-metaboxes.php+164
Illegal string offset '_wpiu_invoice_meta_due_date'
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpiu-invoices
- > Notice in wp-content/plugins/wp-invoice-ultimate/wp-invoice-metaboxes.php+223
Uninitialized string offset: 0
- > GET request to /wp-admin/post-new.php?post_type=wpiu-invoices
- > Warning in wp-content/plugins/wp-invoice-ultimate/wp-invoice-metaboxes.php+169
Illegal string offset '_wpiu_invoice_meta_job_number'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpiu-invoices
- > Warning in wp-content/plugins/wp-invoice-ultimate/wp-invoice-metaboxes.php+185
Illegal string offset '_wpiu_invoice_meta_paid'
- > GET request to /wp-admin/post-new.php?post_type=wpiu-invoices
- > Warning in wp-content/plugins/wp-invoice-ultimate/wp-invoice-metaboxes.php+223
Illegal string offset '_wpiu_invoice_meta_client'
- > GET request to /wp-admin/post-new.php?post_type=wpiu-invoices
- > Deprecated in wp-content/plugins/wp-invoice-ultimate/wp-invoice-metaboxes.php+255
Non-static method WPIU_Options::get_currency() should not be called statically
- 27 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wpiu-invoices&page=wp_iu
- > Notice in wp-content/plugins/wp-invoice-ultimate/wp-invoice-options.php+437
Trying to access array offset on value of type bool
- > GET request to /wp-admin/post-new.php?post_type=wpiu-invoices
- > Notice in wp-content/plugins/wp-invoice-ultimate/wp-invoice-options.php+565
Undefined index:
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
The following issues need your attention
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WPIU' not found in wp-content/plugins/wp-invoice-ultimate/gateways/paypal.php:2
- > PHP Fatal error
Uncaught Error: Class 'WPIU' not found in wp-content/plugins/wp-invoice-ultimate/wp-invoice-help.php:2
- > PHP Fatal error
Uncaught Error: Class 'WPIU' not found in wp-content/plugins/wp-invoice-ultimate/wp-invoice-client.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-invoice-ultimate/wp-invoice-ultimate.php:58
- > PHP Fatal error
Uncaught Error: Class 'WPIU' not found in wp-content/plugins/wp-invoice-ultimate/wp-invoice-metaboxes.php:2
- > PHP Fatal error
Uncaught Error: Class 'WPIU' not found in wp-content/plugins/wp-invoice-ultimate/wp-invoice-options.php:2
- > PHP Fatal error
Uncaught Error: Class 'WPIU' not found in wp-content/plugins/wp-invoice-ultimate/wp-invoice-notifications.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-invoice-ultimate/template/single-wpiu-invoices.php:2
- > PHP Fatal error
Uncaught Error: Class 'WPIU' not found in wp-content/plugins/wp-invoice-ultimate/wp-invoice-ipn-log.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=wpiu-invoices
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-invoice-ultimate/includes/js/admin-js.js?ver=6.3.1:16:30)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=wpiu-invoices
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (The invoice page seen by the client. Simple styling, options to pay invoice and to view previous transactions.), #2 (The list of invoices, can be filtered like normal post by date created and invoice title.), #3 (The invoice edit screen, containing all invoice data and options, all the same as a normal post.), #4 (The invoicing system options panel, kept as simple as possible.)
wp-invoice-ultimate/wp-invoice-ultimate.php Passed 13 tests
The primary PHP file in "WP Invoices Ultimate" version 0.1.6 is used by WordPress to initiate all plugin functionality
90 characters long description:
Simple to use invoicing system that can intergrate with Paypal. Very simple, very flexble.
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 plugin2,181 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 819 | 586 | 1,461 |
CSS | 2 | 38 | 152 | 398 |
JavaScript | 2 | 40 | 93 | 322 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 17.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 62 | 95.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.62% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 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
20 compressed PNG files occupy 0.84MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/css/ui/custom-theme/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/css/ui/custom-theme/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
images/16/delete.png | 0.68KB | 0.53KB | ▼ 22.16% |
includes/css/ui/custom-theme/images/ui-bg_inset-soft_95_fef1ec_1x100.png | 0.12KB | 0.16KB | 0.00% |
includes/css/ui/custom-theme/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |