Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin cannot be installed
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▼1.97MB] [CPU: ▼50.70ms] Passed 4 tests
This is a short check of server-side resources used by Duminex Invoice
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 8.15 ▼31.08 |
Dashboard /wp-admin | 2.05 ▼1.30 | 8.51 ▼53.35 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 10.22 ▼35.69 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 9.82 ▼82.69 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 10.16 ▼28.38 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_duminex |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Duminex Invoice
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 14.74 ▲0.53 | 1.57 ▼0.40 | 38.82 ▼4.19 |
Dashboard /wp-admin | 2,222 ▲34 | 5.83 ▼0.10 | 101.14 ▼14.63 | 69.84 ▲23.97 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 1.98 ▼0.06 | 35.84 ▲1.71 | 32.00 ▼3.81 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 18.24 ▼4.88 | 673.27 ▼2.01 | 57.62 ▲1.80 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.20 ▲0.05 | 94.12 ▼5.03 | 66.48 ▲20.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- The uninstall procedure failed, leaving 1 table in the database
- wp_duminex
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/duminex-invoice/pages/active.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/duminex-invoice/pages/auth.php:2
- > PHP Notice
Undefined index: invoice-alert in wp-content/plugins/duminex-invoice/pages/alert.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_url() in wp-content/plugins/duminex-invoice/pages/invoice.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/duminex-invoice/pages/alert.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Contributors: The plugin contributors field is missing
duminex-invoice/duminex-invoice.php Passed 13 tests
The principal PHP file in "Duminex Invoice" v. 1.0.0 is loaded by WordPress automatically on each request
15 characters long description:
Duminex Invoice
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,123 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 98 | 22 | 545 |
CSS | 1 | 0 | 10 | 378 |
JavaScript | 1 | 31 | 0 | 200 |
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.71 |
Average class complexity | 111.00 |
▷ Minimum class complexity | 111.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/media/icon.png | 15.30KB | 0.55KB | ▼ 96.41% |