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.04MB] [CPU: ▼6.20ms] Passed 4 tests
A check of server-side resources used by Hiflow & Billder Connect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 35.32 ▼10.67 |
Dashboard /wp-admin | 3.40 ▲0.10 | 48.21 ▼0.07 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.81 ▲3.12 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.64 ▼12.72 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.07 ▼1.32 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Hiflow & Billder Connect
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲175 | 14.70 ▲0.37 | 1.62 ▼0.10 | 37.94 ▼7.93 |
Dashboard /wp-admin | 2,345 ▲168 | 6.18 ▲0.66 | 124.51 ▲22.08 | 45.31 ▲1.10 |
Posts /wp-admin/edit.php | 2,273 ▲173 | 3.37 ▲1.36 | 54.32 ▲13.69 | 36.41 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 22.96 ▼2.17 | 595.66 ▼71.49 | 34.96 ▼38.95 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.11 ▼0.04 | 81.55 ▼17.98 | 43.06 ▼0.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiflow-billder-connect/assets/assets.php:13
- > PHP Fatal error
Uncaught Error: Class 'WC_Billder_Connect_Settings' not found in wp-content/plugins/hiflow-billder-connect/views/billder-connect-settings.php:3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/hiflow-billder-connect/billder-connect.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_order() in wp-content/plugins/hiflow-billder-connect/views/templates/invoice.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/hiflow-billder-connect/billder-connect.php on line 23
- > PHP Fatal error
Uncaught Error: Class 'WC_Billder_Connect_Logs' not found in wp-content/plugins/hiflow-billder-connect/views/billder-connect-logs.php:3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/hiflow-billder-connect/billder-connect.php on line 23
- > PHP Fatal error
Uncaught Error: Class 'WC_Billder_Connect_Settings' not found in wp-content/plugins/hiflow-billder-connect/views/billder-connect-order-data.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: e-commerce, gestion, invoice, facturation, woocommerce
hiflow-billder-connect/billder-connect.php 92% from 13 tests
The main PHP file in "Hiflow & Billder Connect" ver. 0.1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("hiflow-billder-connect.php" instead of "billder-connect.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,050 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 326 | 88 | 1,069 |
CSS | 2 | 6 | 2 | 512 |
Sass | 6 | 61 | 0 | 346 |
PO File | 2 | 40 | 35 | 121 |
JavaScript | 1 | 5 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 16 | 33.33% |
▷ Public methods | 46 | 95.83% |
▷ Protected methods | 2 | 4.17% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/link.png | 12.47KB | 8.03KB | ▼ 35.63% |
assets/images/billder_connect.png | 28.52KB | 9.18KB | ▼ 67.80% |
assets/images/hiflow_connect.png | 48.97KB | 17.57KB | ▼ 64.11% |