Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.05ms] Passed 4 tests
A check of server-side resources used by PeproDev WooCommerce Receipt Uploader
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.93 ▲2.19 |
Dashboard /wp-admin | 3.31 ▲0.00 | 60.16 ▲8.03 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.38 ▼3.94 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.14 ▼5.06 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.93 ▼1.40 |
Server storage [IO: ▲0.33MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
wcuploadrcp-clearunistall |
wcuploadrcp-cleardbunistall |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for PeproDev WooCommerce Receipt Uploader
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.17 ▼0.07 | 1.73 ▲0.10 | 44.78 ▲0.28 |
Dashboard /wp-admin | 2,198 ▲24 | 5.67 ▲0.06 | 87.85 ▼1.01 | 41.71 ▲0.02 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▲0.05 | 34.13 ▲0.87 | 33.43 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 22.96 ▼0.16 | 598.43 ▼11.38 | 48.62 ▼5.40 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.17 ▼0.08 | 94.25 ▼4.06 | 41.62 ▼0.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- wcuploadrcp-cleardbunistall
- widget_recent-comments
- db_upgraded
- wcuploadrcp-clearunistall
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pepro-bacs-receipt-upload-for-woocommerce/wc-upload-reciept.php
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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: upload receipt, ecommerce solution, woocommerce
pepro-bacs-receipt-upload-for-woocommerce/wc-upload-reciept.php 77% from 13 tests
The primary PHP file in "PeproDev WooCommerce Receipt Uploader" version 2.5.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pepro-bacs-receipt-upload-for-woocommerce.php" instead of "wc-upload-reciept.php")
- Description: The description should be shorter than 140 characters (currently 149 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,486 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 83 | 447 | 1,667 |
PO File | 1 | 151 | 210 | 379 |
CSS | 2 | 34 | 9 | 185 |
JavaScript | 2 | 10 | 11 | 178 |
SVG | 1 | 4 | 0 | 47 |
Markdown | 1 | 7 | 0 | 29 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 24.43 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 69 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/backend/images/NoImageLarge.png | 1.24KB | 1.20KB | ▼ 2.91% |