Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.24MB] [CPU: ▼41.38ms] Passed 4 tests
Analyzing server-side resources used by Digi Bill
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 12.22 ▼26.84 |
Dashboard /wp-admin | 2.78 ▼0.53 | 16.87 ▼33.63 |
Posts /wp-admin/edit.php | 2.78 ▼0.58 | 16.07 ▼28.36 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.11 | 15.73 ▼76.70 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 14.09 ▼22.40 |
Login /wp-admin/admin.php?page=Digi-Bill | 2.78 | 15.98 |
Registration /wp-admin/admin.php?page=registration | 2.78 | 16.53 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_digibill_plugin |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Digi Bill
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲182 | 13.73 ▼1.02 | 5.45 ▲3.74 | 38.57 ▼1.59 |
Dashboard /wp-admin | 2,237 ▲49 | 5.00 ▲0.07 | 108.90 ▲8.22 | 39.14 ▼5.07 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 2.09 ▲0.06 | 36.32 ▲1.33 | 34.91 ▲4.52 |
Add New Post /wp-admin/post-new.php | 1,445 ▼69 | 22.28 ▲4.75 | 534.19 ▼161.88 | 66.79 ▼7.19 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.24 ▼0.07 | 98.98 ▼10.62 | 38.42 ▼5.33 |
Login /wp-admin/admin.php?page=Digi-Bill | 1,094 | 2.36 | 33.09 | 72.47 |
Registration /wp-admin/admin.php?page=registration | 1,059 | 2.36 | 32.29 | 28.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% 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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=registration
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 0% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/digi-bill/views/digibill-login.php
- > /wp-content/plugins/digi-bill/views/digibill-registration.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/digi-bill/DigiBill.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% 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 need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (This is the header of the Digital bill with invoice ID, Invoice Date, Invoice Time and User Details. screenshot-1.png), #2 (This is the footer of the Digitall Bill with all the items and Totals. screenshot-2.png)
digi-bill/DigiBill.php 77% from 13 tests
"Digi Bill" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("digi-bill.php" instead of "DigiBill.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "5.2")
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.2.4" instead of "7.2")
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
There were no executable files found in this plugin798 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 133 | 81 | 517 |
JavaScript | 6 | 31 | 42 | 206 |
CSS | 3 | 7 | 23 | 75 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
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 | 11 | |
▷ Named functions | 11 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon_digibill_20x20.png | 1.12KB | 1.10KB | ▼ 1.57% |