Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.80MB] [CPU: ▲7.42ms] Passed 4 tests
This is a short check of server-side resources used by CRM ERP Business Solution for freelancers & SME
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.21 ▲2.75 | 52.24 ▲12.08 |
Dashboard /wp-admin | 6.14 ▲2.79 | 63.01 ▲3.58 |
Posts /wp-admin/edit.php | 6.20 ▲2.84 | 68.13 ▲12.07 |
Add New Post /wp-admin/post-new.php | 8.85 ▲2.97 | 106.81 ▲1.93 |
Media Library /wp-admin/upload.php | 6.07 ▲2.84 | 63.12 ▲29.62 |
Sales /wp-admin/admin.php?page=crm-erp-business-solution&tab=sales | 6.07 | 55.24 |
Offers /wp-admin/admin.php?page=crm-erp-business-solution&tab=offers | 6.07 | 49.38 |
Appointments /wp-admin/edit.php?post_type=crmerpbs_app | 6.14 | 57.40 |
CRM ERP /wp-admin/admin.php?page=crm-erp-business-solution | 6.01 | 46.51 |
Vendors /wp-admin/admin.php?page=crm-erp-business-solution&tab=vendors | 6.09 | 56.30 |
Reports /wp-admin/admin.php?page=crm-erp-business-solution&tab=reports | 6.01 | 67.12 |
Payments /wp-admin/admin.php?page=crm-erp-business-solution&tab=payments | 6.07 | 56.86 |
Customers /wp-admin/admin.php?page=crm-erp-business-solution&tab=customers | 6.09 | 53.25 |
Settings /wp-admin/admin.php?page=crm-erp-business-solution&tab=settings | 6.17 | 62.72 |
Server storage [IO: ▲4.75MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 88 new files
Database: 3 new tables, 19 new options
New tables |
---|
wp_crmerpbs_transaction_items |
wp_crmerpbs_transactions |
wp_crmerpbs_documents |
New WordPress options |
---|
crmerpbs_enableEmails |
crmerpbs_documents_table_db_version |
crmerpbs_enableAppointments |
crmerpbs_enableTickets |
widget_recent-comments |
widget_recent-posts |
crmerpbs_enableActions |
crmerpbs_thankyouColor |
crmerpbs_enableProducts |
crmerpbs_enableOffers |
... |
Browser metrics Passed 4 tests
CRM ERP Business Solution for freelancers & SME: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲168 | 15.26 ▲0.89 | 1.61 ▼0.40 | 37.21 ▼6.77 |
Dashboard /wp-admin | 2,305 ▲117 | 7.15 ▲2.25 | 135.35 ▲22.78 | 90.93 ▲48.59 |
Posts /wp-admin/edit.php | 2,211 ▲143 | 3.96 ▲1.95 | 58.69 ▲19.55 | 74.07 ▲38.16 |
Add New Post /wp-admin/post-new.php | 1,615 ▲80 | 24.38 ▲1.26 | 709.82 ▲14.11 | 35.02 ▼21.23 |
Media Library /wp-admin/upload.php | 1,502 ▲111 | 5.25 ▲1.09 | 112.21 ▲11.10 | 92.45 ▲48.98 |
Sales /wp-admin/admin.php?page=crm-erp-business-solution&tab=sales | 1,620 | 3.46 | 63.23 | 100.27 |
Offers /wp-admin/admin.php?page=crm-erp-business-solution&tab=offers | 1,537 | 3.47 | 65.35 | 74.30 |
Appointments /wp-admin/edit.php?post_type=crmerpbs_app | 2,017 | 5.58 | 98.94 | 80.39 |
CRM ERP /wp-admin/admin.php?page=crm-erp-business-solution | 1,375 | 4.19 | 109.66 | 75.96 |
Vendors /wp-admin/admin.php?page=crm-erp-business-solution&tab=vendors | 1,550 | 3.98 | 56.29 | 71.29 |
Reports /wp-admin/admin.php?page=crm-erp-business-solution&tab=reports | 1,381 | 4.30 | 119.46 | 75.46 |
Payments /wp-admin/admin.php?page=crm-erp-business-solution&tab=payments | 1,612 | 3.82 | 49.61 | 84.39 |
Customers /wp-admin/admin.php?page=crm-erp-business-solution&tab=customers | 1,550 | 4.05 | 57.18 | 73.19 |
Settings /wp-admin/admin.php?page=crm-erp-business-solution&tab=settings | 3,859 | 10.88 | 212.82 | 164.12 |
Uninstaller [IO: ▲4.75MB] [DB: ▲0.01MB] 0% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following itemsThis plugin does not fully uninstall, leaving 3 tables in the database This plugin does not fully uninstall, leaving 20 options in the database
- Uninstall procedure had uncaught errors
- > Error in wp-content/plugins/crm-erp-business-solution/crm-erp-business-solution.php+299
Uncaught Error: Using $this when not in object context in wp-content/plugins/crm-erp-business-solution/crm-erp-business-solution.php:299
Stack trace:
#0 wp-includes/class-wp-hook.php(310): CrmErpSolution::onUninstall()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(1269): do_action()
#4 wp-admin/includes/plugin.php(960): uninstall_plugin() - The plugin did not uninstall successfully, leaving 88 files (4.75MB) in the plugin directory
- (new file) css/images/ui-icons_555555_256x240.png
- (new file) css/backend.css
- (new file) css/fullcalendar.min.css
- (new file) crm-erp-business-solution.php
- (new file) css/images/ui-icons_777620_256x240.png
- (new file) css/images/ui-icons_777777_256x240.png
- (new file) css/images/ui-icons_444444_256x240.png
- (new file) css/images/ui-icons_cc0000_256x240.png
- (new file) class-main.php
- (new file) css/font-awesome.min.css
- ...
- wp_crmerpbs_documents
- wp_crmerpbs_transactions
- wp_crmerpbs_transaction_items
- crmerpbs_headingsBackground
- widget_recent-comments
- crmerpbs_generalColor
- crmerpbs_enableAppointments
- crmerpbs_headingsColor
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- crmerpbs_enableProducts
- can_compress_scripts
- ...
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=crm-erp-business-solution&tab=reports
- > Notice in wp-content/plugins/crm-erp-business-solution/includes/crm-erp-reports.php+469
Undefined variable: month
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=crm-erp-business-solution&tab=reports
- > Notice in wp-content/plugins/crm-erp-business-solution/includes/crm-erp-reports.php+469
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=crm-erp-business-solution&tab=reports
- > Notice in wp-content/plugins/crm-erp-business-solution/includes/crm-erp-reports.php+469
Undefined variable: mon
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=crm-erp-business-solution&tab=reports
- > Notice in wp-content/plugins/crm-erp-business-solution/includes/crm-erp-reports.php+135
Undefined variable: extra
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=crm-erp-business-solution&tab=reports
- > Warning in wp-content/plugins/crm-erp-business-solution/includes/crm-erp-reports.php+135
array_merge(): Expected parameter 2 to be an array, null given
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=crm-erp-business-solution&tab=reports
- > Warning in wp-content/plugins/crm-erp-business-solution/includes/crm-erp-reports.php+150
Invalid argument supplied for foreach()
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
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 Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: erp, business solution, woocommerce crm, customer relatioship, crm
crm-erp-business-solution/crm-erp-business-solution.php 85% from 13 tests
The entry point to "CRM ERP Business Solution for freelancers & SME" version 1.0.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "2.2")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin22,860 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 3,045 | 683 | 13,486 |
JavaScript | 6 | 1,583 | 432 | 5,929 |
CSS | 5 | 114 | 72 | 1,743 |
PO File | 1 | 492 | 627 | 1,017 |
SVG | 1 | 0 | 0 | 685 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 153.50 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 435.00 |
Average method complexity | 6.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 477 | |
▷ Static methods | 11 | 2.31% |
▷ Public methods | 398 | 83.44% |
▷ Protected methods | 79 | 16.56% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 14 | 66.67% |
▷ Anonymous functions | 7 | 33.33% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/crmerpbs.png | 16.75KB | 7.11KB | ▼ 57.55% |
images/default.png | 14.13KB | 5.96KB | ▼ 57.80% |
images/extendwp.png | 5.75KB | 3.37KB | ▼ 41.46% |
css/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |
images/woo.png | 4.63KB | 2.87KB | ▼ 37.97% |