Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.05ms] Passed 4 tests
This is a short check of server-side resources used by Beautiful Custom Invoices
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 43.12 ▲3.42 |
Dashboard /wp-admin | 3.44 ▲0.14 | 49.57 ▼0.89 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 48.11 ▼4.00 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 90.36 ▼9.84 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 40.93 ▲2.52 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Beautiful Custom Invoices: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲156 | 13.39 ▼1.24 | 8.67 ▲6.91 | 40.45 ▼6.53 |
Dashboard /wp-admin | 2,215 ▲38 | 5.61 ▼0.02 | 85.84 ▼2.59 | 40.41 ▼10.19 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.00 ▼0.00 | 34.97 ▼3.65 | 33.43 ▼6.10 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.24 ▼0.42 | 615.60 ▼66.57 | 47.28 ▼18.76 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.30 ▲0.11 | 105.62 ▼3.65 | 45.45 ▼1.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/beautiful-custom-invoices/public/partials/bci-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Posts_Controller' not found in wp-content/plugins/beautiful-custom-invoices/includes/class-wp-rest-custom-posts-controller.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/beautiful-custom-invoices/admin/partials/plugin-bci-display.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
2 plugin tags: invoices, clients
beautiful-custom-invoices/bci.php 85% from 13 tests
"Beautiful Custom Invoices" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("beautiful-custom-invoices.php" instead of "bci.php")
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 detected23,312 lines of code in 319 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 157 | 0 | 0 | 15,654 |
Vuejs Component | 44 | 98 | 31 | 2,881 |
JavaScript | 64 | 233 | 185 | 2,770 |
Sass | 30 | 287 | 41 | 1,523 |
PHP | 13 | 137 | 554 | 336 |
Markdown | 1 | 14 | 0 | 55 |
SVG | 1 | 0 | 0 | 37 |
HTML | 2 | 3 | 4 | 32 |
CSS | 6 | 2 | 15 | 15 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 27 | 81.82% |
▷ Protected methods | 1 | 3.03% |
▷ Private methods | 5 | 15.15% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
21 PNG files occupy 0.16MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
serverless-invoices/public/img/icons/android-chrome-192x192.png | 4.19KB | 2.38KB | ▼ 43.34% |
serverless-invoices/dist/img/icons/android-chrome-maskable-512x512.png | 11.25KB | 5.26KB | ▼ 53.21% |
serverless-invoices/public/img/icons/mstile-150x150.png | 2.10KB | 2.29KB | 0.00% |
serverless-invoices/public/img/icons/android-chrome-512x512.png | 11.25KB | 5.26KB | ▼ 53.21% |
serverless-invoices/dist/img/icons/android-chrome-192x192.png | 4.19KB | 2.38KB | ▼ 43.34% |