Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.71MB] [CPU: ▲0.08ms] Passed 4 tests
An overview of server-side resources used by LendingQ
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 41.26 ▲2.77 |
Dashboard /wp-admin | 4.06 ▲0.72 | 68.22 ▲7.88 |
Posts /wp-admin/edit.php | 4.12 ▲0.76 | 56.60 ▲9.03 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.75 | 82.65 ▼14.60 |
Media Library /wp-admin/upload.php | 3.92 ▲0.70 | 39.98 ▲4.27 |
Check In /wp-admin/edit.php?post_type=lendingq_hold&page=lendingq_check_in_list | 3.94 | 41.61 |
Settings /wp-admin/edit.php?post_type=lendingq_stock&page=lendingq_settings | 3.94 | 37.00 |
Delete Item /wp-admin/admin.php?page=lendingq_cancel_stock | 3.87 | 31.69 |
New Item /wp-admin/post-new.php?post_type=lendingq_stock | 3.99 | 48.59 |
Contact /wp-admin/admin.php?page=lendingq_contact_hold | 3.87 | 34.50 |
Cancel Hold /wp-admin/admin.php?page=lendingq_cancel_hold | 3.86 | 34.76 |
All Items /wp-admin/edit.php?post_type=lendingq_stock | 3.97 | 41.57 |
Check Out /wp-admin/admin.php?page=lendingq_check_out | 3.86 | 33.02 |
Item Types /wp-admin/edit-tags.php?taxonomy=lendingq_item_type&post_type=lendingq_stock | 3.92 | 37.43 |
New Hold /wp-admin/post-new.php?post_type=lendingq_hold | 4.01 | 52.59 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 41 new options
New WordPress options |
---|
lendingq_field_staff_desc |
lendingq_field_header_hold |
can_compress_scripts |
lendingq_field_card_desc |
lendingq_field_item_desc |
lendingq_field_name_desc |
lendingq_field_phone |
lendingq_field_item_notes_desc |
lendingq_field_verified_desc |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for LendingQ
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,050 ▲304 | 14.00 ▼0.31 | 8.13 ▲6.36 | 38.50 ▼4.45 |
Dashboard /wp-admin | 2,296 ▲105 | 5.02 ▼0.88 | 104.08 ▲3.53 | 40.75 ▼1.69 |
Posts /wp-admin/edit.php | 2,185 ▲96 | 2.31 ▲0.29 | 39.32 ▲0.81 | 35.41 ▲2.15 |
Add New Post /wp-admin/post-new.php | 1,592 ▲72 | 17.82 ▼5.23 | 683.15 ▼5.76 | 37.66 ▼21.15 |
Media Library /wp-admin/upload.php | 1,484 ▲96 | 4.45 ▲0.29 | 97.94 ▼12.38 | 43.51 ▼1.33 |
Check In /wp-admin/edit.php?post_type=lendingq_hold&page=lendingq_check_in_list | 887 | 1.89 | 26.46 | 25.64 |
Settings /wp-admin/edit.php?post_type=lendingq_stock&page=lendingq_settings | 1,735 | 6.69 | 131.46 | 60.24 |
Delete Item /wp-admin/admin.php?page=lendingq_cancel_stock | 861 | 1.93 | 25.08 | 23.28 |
New Item /wp-admin/post-new.php?post_type=lendingq_stock | 1,501 | 2.75 | 50.90 | 30.12 |
Contact /wp-admin/admin.php?page=lendingq_contact_hold | 861 | 1.90 | 25.12 | 25.83 |
Cancel Hold /wp-admin/admin.php?page=lendingq_cancel_hold | 864 | 1.90 | 25.48 | 25.14 |
All Items /wp-admin/edit.php?post_type=lendingq_stock | 1,208 | 2.38 | 32.36 | 31.97 |
Check Out /wp-admin/admin.php?page=lendingq_check_out | 861 | 1.93 | 24.77 | 26.85 |
Item Types /wp-admin/edit-tags.php?taxonomy=lendingq_item_type&post_type=lendingq_stock | 1,333 | 1.98 | 33.27 | 27.45 |
New Hold /wp-admin/post-new.php?post_type=lendingq_hold | 1,554 | 2.94 | 52.23 | 31.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 0% 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)
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=lendingq_check_out
- > Notice in wp-content/plugins/lendingq/lendingq.php+1834
Undefined index: post_id
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/lendingq/template_quick_widget.php
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/lendingq/template_check_in_form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/lendingq/template_post_item.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lendingq/template_check_out_form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lendingq/template_check_in_list.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lendingq/template_cancel_stock_form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lendingq/template_cancel_stock_form_checked_out.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lendingq/template_no_item_types.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lendingq/template_post_hold.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lendingq/template_cancel_hold_form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/lendingq/template_check_out_list.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- 10 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=lendingq_hold
- > Network (severe)
wp-content/plugins/lendingq/includes/jquery-ui.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== lendingq ===
)
lendingq/lendingq.php Passed 13 tests
This is the main PHP file of "LendingQ" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
95 characters long description:
A simple system to manage the lending of items (like hotspots) with an integrated waiting list.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin3,669 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 139 | 189 | 3,547 |
CSS | 2 | 0 | 4 | 113 |
JavaScript | 2 | 0 | 3 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 265.00 |
▷ Minimum class complexity | 265.00 |
▷ Maximum class complexity | 265.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 3 | 3.16% |
▷ Public methods | 95 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 31 | |
▷ Global constants | 31 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected