Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲3.61MB] [CPU: ▲20.29ms] Passed 4 tests
A check of server-side resources used by CRM WordPress Plugin - RepairBuddy
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.06 ▲3.59 | 68.52 ▲23.94 |
Dashboard /wp-admin | 6.97 ▲3.66 | 77.16 ▲25.64 |
Posts /wp-admin/edit.php | 7.03 ▲3.66 | 70.46 ▲15.35 |
Add New Post /wp-admin/post-new.php | 9.50 ▲3.61 | 118.38 ▲16.22 |
Media Library /wp-admin/upload.php | 6.82 ▲3.59 | 62.97 ▲29.26 |
Customer Devices /wp-admin/admin.php?page=wcrb_customer_devices | 6.77 | 59.65 |
Jobs /wp-admin/edit.php?post_type=rep_jobs | 6.94 | 66.51 |
Devices /wp-admin/edit.php?post_type=rep_devices | 6.87 | 61.97 |
Reminder Logs /wp-admin/admin.php?page=wcrb_reminder_logs | 6.79 | 55.43 |
Computer Repair /wp-admin/admin.php?page=wc-computer-rep-shop-handle | 6.91 | 94.99 |
Parts /wp-admin/edit.php?post_type=rep_products | 6.87 | 61.85 |
Device Types /wp-admin/edit-tags.php?taxonomy=device_type&post_type=rep_devices | 6.85 | 63.85 |
Clients /wp-admin/admin.php?page=wc-computer-rep-shop-clients | 6.82 | 62.74 |
Services /wp-admin/edit.php?post_type=rep_services | 6.87 | 58.95 |
Print Screen /wp-admin/edit.php?post_type=rep_jobs&page=wc_computer_repair_print | 6.66 | 48.06 |
Server storage [IO: ▲2.36MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 111 new files
Database: 10 new tables, 17 new options
New tables |
---|
wp_wc_cr_reminder_logs |
wp_wc_cr_customer_devices |
wp_wc_cr_taxes |
wp_wc_cr_payment_status |
wp_wc_cr_job_history |
wp_wc_cr_maint_reminders |
wp_wc_cr_order_items |
wp_wc_cr_job_status |
wp_wc_cr_payments |
wp_wc_cr_order_itemmeta |
New WordPress options |
---|
wc_rb_device_booking_page_id |
widget_recent-posts |
wc_rb_status_check_page_id |
wc_rb_list_services_page_id |
wc_rb_list_parts_page_id |
offer_pic_de |
widget_theysaidso_widget |
wc_rb_customer_login_page |
update_tax_states |
wc_cr_shop_version |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CRM WordPress Plugin - RepairBuddy
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲210 | 13.82 ▼0.91 | 10.40 ▲8.63 | 46.10 ▲0.12 |
Dashboard /wp-admin | 2,246 ▲66 | 5.59 ▼0.05 | 97.67 ▲3.99 | 82.98 ▲38.67 |
Posts /wp-admin/edit.php | 2,169 ▲66 | 1.96 ▼0.02 | 39.53 ▼5.52 | 34.65 ▼5.76 |
Add New Post /wp-admin/post-new.php | 1,592 ▲66 | 21.98 ▼1.10 | 796.06 ▲155.35 | 68.38 ▲9.91 |
Media Library /wp-admin/upload.php | 1,469 ▲72 | 4.14 ▼0.11 | 95.08 ▼3.71 | 68.18 ▲26.23 |
Customer Devices /wp-admin/admin.php?page=wcrb_customer_devices | 908 | 1.99 | 26.02 | 26.92 |
Jobs /wp-admin/edit.php?post_type=rep_jobs | 1,390 | 2.78 | 71.81 | 30.57 |
Devices /wp-admin/edit.php?post_type=rep_devices | 1,146 | 1.90 | 33.94 | 29.35 |
Reminder Logs /wp-admin/admin.php?page=wcrb_reminder_logs | 923 | 1.99 | 25.30 | 27.33 |
Computer Repair /wp-admin/admin.php?page=wc-computer-rep-shop-handle | 6,077 | 6.00 | 175.79 | 37.73 |
Parts /wp-admin/edit.php?post_type=rep_products | 1,137 | 1.96 | 36.60 | 30.58 |
Device Types /wp-admin/edit-tags.php?taxonomy=device_type&post_type=rep_devices | 1,531 | 3.15 | 44.77 | 67.22 |
Clients /wp-admin/admin.php?page=wc-computer-rep-shop-clients | 2,122 | 2.45 | 47.69 | 29.49 |
Services /wp-admin/edit.php?post_type=rep_services | 1,137 | 1.90 | 35.86 | 32.90 |
Print Screen /wp-admin/edit.php?post_type=rep_jobs&page=wc_computer_repair_print | 28 | 0.41 | 0.08 | 4.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 10 tables in the database
- wp_wc_cr_order_itemmeta
- wp_wc_cr_taxes
- wp_wc_cr_payments
- wp_wc_cr_reminder_logs
- wp_wc_cr_order_items
- wp_wc_cr_customer_devices
- wp_wc_cr_payment_status
- wp_wc_cr_job_history
- wp_wc_cr_job_status
- wp_wc_cr_maint_reminders
- Zombie WordPress options detected upon uninstall: 17 options
- wc_rb_setup_pages_once
- wc_rb_payment_methods_active
- widget_recent-posts
- widget_recent-comments
- wc_cr_shop_version
- db_upgraded
- theysaidso_admin_options
- wc_rb_status_check_page_id
- wc_rb_customer_login_page
- wc_rb_list_services_page_id
- ...
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wcrb_customer_devices
- > 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.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/computer-repair-shop/admin_menu.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/computer-repair-shop/lib/shortcodes/start_job_by_device.php:172
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/computer-repair-shop/lib/includes/wc_services.php:40
- > PHP Warning
Use of undefined constant WC_COMPUTER_REPAIR_SHOP_DIR - assumed 'WC_COMPUTER_REPAIR_SHOP_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/computer-repair-shop/lib/shortcodes/shortcodes.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/computer-repair-shop/lib/shortcodes/order_status.php:35
- > PHP Warning
Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in wp-content/plugins/computer-repair-shop/lib/shortcodes/shortcodes.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/computer-repair-shop/lib/includes/wc_products.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/computer-repair-shop/lib/includes/wc_devices.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/computer-repair-shop/lib/includes/theme_functions.php:125
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/computer-repair-shop/lib/shortcodes/list_products.php:38
- > 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)
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=rep_jobs&page=wc_computer_repair_print
- > Network (severe)
wp-admin/edit.php?post_type=rep_jobs&page=wc_computer_repair_print - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (23 tag instead of maximum 10); only the first 5 tags are used in your directory listing
computer-repair-shop/computer_repair_shop.php 77% from 13 tests
The primary PHP file in "CRM WordPress Plugin - RepairBuddy" version 3.7980 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
- Main file name: Name the main plugin file the same as the plugin slug ("computer-repair-shop.php" instead of "computer_repair_shop.php")
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 detected35,025 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 62 | 4,034 | 1,427 | 17,535 |
CSS | 7 | 1,638 | 35 | 9,202 |
PO File | 4 | 3,053 | 4,265 | 6,495 |
JavaScript | 7 | 391 | 107 | 1,793 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 52.18 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 194.00 |
Average method complexity | 7.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 132 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 132 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 208 | |
▷ Named functions | 202 | 97.12% |
▷ Anonymous functions | 6 | 2.88% |
Constants | 5 | |
▷ Global constants | 5 | 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
14 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/icons/parts.png | 26.76KB | 10.21KB | ▼ 61.85% |
assets/images/nav-icon.png | 0.14KB | 0.11KB | ▼ 23.40% |
assets/admin/images/icons/technicians.png | 19.25KB | 8.13KB | ▼ 57.79% |
assets/admin/images/icons/clients.png | 55.05KB | 10.45KB | ▼ 81.01% |
assets/admin/images/icons/types.png | 17.41KB | 5.29KB | ▼ 69.61% |