Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.77MB] [CPU: ▲0.65ms] Passed 4 tests
Analyzing server-side resources used by Karrya Field service management system
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.76 | 46.21 ▲4.34 |
Dashboard /wp-admin | 4.08 ▲0.78 | 53.87 ▲2.48 |
Posts /wp-admin/edit.php | 4.13 ▲0.78 | 55.17 ▲1.12 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 100.00 ▼5.35 |
Media Library /wp-admin/upload.php | 4.00 ▲0.78 | 43.47 ▲4.38 |
Manage job worker /wp-admin/admin.php?page=fsms_workers | 3.91 | 38.01 |
Setting /wp-admin/admin.php?page=fsms_settings | 4.09 | 46.89 |
Manage stages /wp-admin/admin.php?page=fsms_stages | 3.95 | 35.25 |
Leads /wp-admin/admin.php?page=fsms_leads | 3.93 | 41.41 |
Manage sites /wp-admin/admin.php?page=fsms_sites | 3.93 | 36.98 |
Manage stock /wp-admin/admin.php?page=fsms_stocks | 3.93 | 40.13 |
Manage supplier /wp-admin/admin.php?page=fsms_suppliers | 3.91 | 35.41 |
Manage charge type /wp-admin/admin.php?page=fsms_charge_types | 3.91 | 37.43 |
Manage departments /wp-admin/admin.php?page=fsms_departments | 3.91 | 34.19 |
Manage customers /wp-admin/admin.php?page=fsms_customers | 3.95 | 40.04 |
Server storage [IO: ▲0.33MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 99 new files
Database: 11 new tables, 6 new options
New tables |
---|
wp_fsms_customer |
wp_fsms_stock |
wp_fsms_payment |
wp_fsms_site |
wp_fsms_leads |
wp_fsms_lead_log |
wp_fsms_stage |
wp_fsms_charge_type |
wp_fsms_department |
wp_fsms_message |
... |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Karrya Field service management system
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,015 ▲269 | 14.35 ▼0.03 | 7.10 ▲5.31 | 40.16 ▼2.45 |
Dashboard /wp-admin | 2,293 ▲105 | 4.99 ▲0.13 | 107.99 ▼2.58 | 78.21 ▲38.35 |
Posts /wp-admin/edit.php | 2,177 ▲88 | 2.25 ▲0.22 | 37.49 ▼3.67 | 35.04 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,585 ▲66 | 23.25 ▼0.11 | 677.06 ▲31.12 | 38.64 ▼18.26 |
Media Library /wp-admin/upload.php | 1,475 ▲90 | 4.29 ▲0.04 | 95.57 ▼10.39 | 85.16 ▲36.48 |
Manage job worker /wp-admin/admin.php?page=fsms_workers | 881 | 1.88 | 25.90 | 31.09 |
Setting /wp-admin/admin.php?page=fsms_settings | 3,084 | 10.75 | 297.21 | 150.30 |
Manage stages /wp-admin/admin.php?page=fsms_stages | 945 | 1.87 | 28.54 | 34.74 |
Leads /wp-admin/admin.php?page=fsms_leads | 917 | 1.84 | 27.44 | 31.41 |
Manage sites /wp-admin/admin.php?page=fsms_sites | 933 | 1.87 | 27.64 | 30.68 |
Manage stock /wp-admin/admin.php?page=fsms_stocks | 972 | 1.83 | 27.47 | 31.60 |
Manage supplier /wp-admin/admin.php?page=fsms_suppliers | 878 | 1.92 | 25.42 | 29.03 |
Manage charge type /wp-admin/admin.php?page=fsms_charge_types | 929 | 1.85 | 28.07 | 32.52 |
Manage departments /wp-admin/admin.php?page=fsms_departments | 897 | 1.85 | 24.68 | 26.54 |
Manage customers /wp-admin/admin.php?page=fsms_customers | 949 | 1.94 | 25.86 | 34.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 11 tables in the database
- wp_fsms_message
- wp_fsms_invoice
- wp_fsms_site
- wp_fsms_stock
- wp_fsms_payment
- wp_fsms_customer
- wp_fsms_lead_log
- wp_fsms_leads
- wp_fsms_stage
- wp_fsms_charge_type
- ...
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% 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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=fsms_departments
- > Notice in wp-content/plugins/karrya-field-service-management-system/views/departments.php+21
Undefined variable: odir
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=fsms_departments
- > Notice in wp-content/plugins/karrya-field-service-management-system/views/departments.php+21
Undefined variable: filters
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=fsms_departments
- > Notice in wp-content/plugins/karrya-field-service-management-system/views/departments.php+21
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/karrya-field-service-management-system/activate.php
- > /wp-content/plugins/karrya-field-service-management-system/deactivate.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/karrya-field-service-management-system/controllers/leads.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/karrya-field-service-management-system/controllers/users.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/karrya-field-service-management-system/controllers/shortcodes.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/karrya-field-service-management-system/fsms_index.php:15
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
karrya-field-service-management-system/fsms_index.php 92% from 13 tests
The main PHP script in "Karrya Field service management system" version 1.4.3 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("karrya-field-service-management-system.php" instead of "fsms_index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin8,422 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 92 | 1,528 | 233 | 7,702 |
JavaScript | 2 | 110 | 14 | 410 |
CSS | 1 | 47 | 3 | 253 |
Markdown | 1 | 28 | 0 | 57 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 13.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 37 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 174 | |
▷ Static methods | 65 | 37.36% |
▷ Public methods | 170 | 97.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.30% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon.png | 1.08KB | 0.23KB | ▼ 78.70% |