Benchmarks
Plugin footprint 65% 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.43MB] [CPU: ▼9.88ms] Passed 4 tests
A check of server-side resources used by CZ Loan Management
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 38.47 ▼4.46 |
Dashboard /wp-admin | 3.78 ▲0.43 | 44.65 ▼12.05 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 47.61 ▼3.14 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.54 | 72.78 ▼19.87 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 34.56 ▼1.17 |
Edit User /wp-admin/admin.php?page=cz-loan-management-user-edit | 3.57 | 31.00 |
View Loan /wp-admin/admin.php?page=cz-loan-management-loan-view | 3.57 | 31.25 |
Add New Currency /wp-admin/admin.php?page=cz-loan-management-add-new-currency | 3.58 | 30.35 |
Chat /wp-admin/admin.php?page=cz-loan-management-admin-chat | 3.58 | 31.06 |
Loan Management /wp-admin/admin.php?page=cz-loan-management | 3.63 | 42.90 |
Download CSV /wp-admin/admin.php?page=cz-loan-management-download-csv | 3.55 | 29.81 |
Currency /wp-admin/admin.php?page=cz-loan-management-add-currency | 3.73 | 33.54 |
Loan Requests /wp-admin/admin.php?page=cz-requests_page_init | 3.62 | 33.81 |
Edit Loan /wp-admin/admin.php?page=cz-loan-management-loan-edit | 3.57 | 31.36 |
Notifications /wp-admin/admin.php?page=cz-loan-management-admin-notifications | 3.60 | 34.22 |
Server storage [IO: ▲0.98MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 70 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_cz_loan_management |
wp_cz_loan_management_currencies |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
cz-loan-management-login-customer |
widget_recent-comments |
cz-loan-management-loan-customer |
widget_recent-posts |
db_upgraded |
cz-loan-management-register-customer |
widget_theysaidso_widget |
cz-loan-management-profile-customer |
Browser metrics Passed 4 tests
A check of browser resources used by CZ Loan Management
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲260 | 14.11 ▼0.24 | 19.81 ▲17.65 | 41.84 ▼11.06 |
Dashboard /wp-admin | 2,279 ▲88 | 5.81 ▲0.02 | 98.47 ▼20.25 | 39.12 ▲0.90 |
Posts /wp-admin/edit.php | 2,163 ▲74 | 2.01 ▲0.02 | 35.61 ▼5.25 | 33.32 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,576 ▲57 | 23.22 ▼0.01 | 619.97 ▼60.75 | 58.36 ▲5.15 |
Media Library /wp-admin/upload.php | 1,468 ▲80 | 4.31 ▲0.13 | 96.34 ▼6.73 | 43.57 ▼1.38 |
Edit User /wp-admin/admin.php?page=cz-loan-management-user-edit | 973 | 2.02 | 26.21 | 62.25 |
View Loan /wp-admin/admin.php?page=cz-loan-management-loan-view | 920 | 2.04 | 24.17 | 30.89 |
Add New Currency /wp-admin/admin.php?page=cz-loan-management-add-new-currency | 888 | 1.88 | 24.94 | 30.07 |
Chat /wp-admin/admin.php?page=cz-loan-management-admin-chat | 874 | 2.14 | 27.78 | 30.15 |
Loan Management /wp-admin/admin.php?page=cz-loan-management | 1,055 | 2.03 | 25.75 | 58.22 |
Download CSV /wp-admin/admin.php?page=cz-loan-management-download-csv | 11 | 0.44 | 0.00 | 0.00 |
Currency /wp-admin/admin.php?page=cz-loan-management-add-currency | 2,793 | 2.17 | 25.19 | 40.31 |
Loan Requests /wp-admin/admin.php?page=cz-requests_page_init | 923 | 2.04 | 24.10 | 35.56 |
Edit Loan /wp-admin/admin.php?page=cz-loan-management-loan-edit | 923 | 2.04 | 24.60 | 32.13 |
Notifications /wp-admin/admin.php?page=cz-loan-management-admin-notifications | 949 | 2.03 | 23.47 | 28.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_cz_loan_management
- wp_cz_loan_management_currencies
- Zombie WordPress options were found after uninstall: 10 options
- widget_recent-comments
- cz-loan-management-login-customer
- widget_recent-posts
- cz-loan-management-loan-customer
- db_upgraded
- theysaidso_admin_options
- cz-loan-management-profile-customer
- cz-loan-management-register-customer
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=cz-loan-management-admin-chat
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/cz-loan-management/includes/class-cz-loan-management-messages-ajax.php+159
Undefined variable: returnloans
- > GET request to /wp-admin/admin.php?page=cz-loan-management-download-csv
- > 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.)
- > GET request to /wp-admin/admin.php?page=cz-loan-management-download-csv
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
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 items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cz-loan-management/public/partials/cz-loan-management-public-display.php
- > /wp-content/plugins/cz-loan-management/admin/partials/cz-loan-management-admin-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/cz-loan-management/public/pages-templates/class-cz-single-loans.php:3
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (CZ Laon Management Admin Dashboard in screenshot (screenshot/Loan-Management.png).) image missing
cz-loan-management/cz-loan-management.php Passed 13 tests
The principal PHP file in "CZ Loan Management" v. 1.1 is loaded by WordPress automatically on each request
36 characters long description:
This plugin use for loan management.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected5,037 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 442 | 834 | 3,380 |
CSS | 6 | 68 | 34 | 1,213 |
JavaScript | 10 | 70 | 62 | 437 |
SVG | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 20 | 42.55% |
▷ Public methods | 42 | 89.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.64% |
Functions | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot/loan-management.png | 19.63KB | 7.24KB | ▼ 63.11% |