Benchmarks
Plugin footprint 63% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲13.02MB] [CPU: ▲150.95ms] 25% from 4 tests
A check of server-side resources used by Jetpack CRM - Clients, Leads, Invoices, Billing, Email Marketing, & Automation
Please fix the following
- RAM: The total memory usage must be kept under 10MB (currently 16.42MB on /wp-admin/admin.php?page=manage-segments)
- CPU: Total CPU usage must kept under 500.00ms (currently 754.12ms on /wp-admin/admin.php?page=zerobscrm-extensions)
- Extra RAM: Extra memory usage must be kept under 5MB (currently 13.02MB on /wp-admin/admin.php?page=manage-segments)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 16.10 ▲12.64 | 227.89 ▲184.15 |
Dashboard /wp-admin | 16.48 ▲13.18 | 184.36 ▲134.29 |
Posts /wp-admin/edit.php | 16.54 ▲13.18 | 211.11 ▲164.21 |
Add New Post /wp-admin/post-new.php | 18.99 ▲13.11 | 239.39 ▲150.21 |
Media Library /wp-admin/upload.php | 16.38 ▲13.15 | 189.66 ▲155.07 |
Quotes /wp-admin/admin.php?page=manage-quotes | 16.31 | 173.46 |
Team /wp-admin/admin.php?page=zerobscrm-team | 16.51 | 678.74 |
Dashboard /wp-admin/admin.php?page=zerobscrm-dash | 16.46 | 201.98 |
CRM Settings /wp-admin/admin.php?page=zerobscrm-plugin-settings | 16.67 | 214.39 |
Contacts /wp-admin/admin.php?page=manage-customers | 16.42 | 206.67 |
System Assistant /wp-admin/admin.php?page=zerobscrm-systemstatus | 19.12 | 292.16 |
Extensions /wp-admin/admin.php?page=zerobscrm-extensions | 16.51 | 754.12 |
Welcome /wp-admin/admin.php?page=zerobscrm-plugin | 16.42 | 186.54 |
Export Tools /wp-admin/admin.php?page=zbs-export-tools | 16.42 | 237.48 |
Segments /wp-admin/admin.php?page=manage-segments | 16.42 | 200.62 |
Server storage [IO: ▲34.79MB] [DB: ▲0.08MB] 33% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the followingTotal filesystem usage must be limited to 25MB (currently using 34.79MB)
- There were 21 files (1,646.68KB) illegally modified outside of "wp-content/plugins/zero-bs-crm/" and "wp-content/uploads/"
- (new file) wp-content/jpcrm-storage/fonts/NotoSans-BoldItalic.ttf
- (new file) wp-content/jpcrm-storage/fonts/.htaccess
- (new file) wp-content/jpcrm-storage/fonts/NotoSans-Italic.ufm
- (new file) wp-content/jpcrm-storage/fonts/NotoSans-Bold.ttf
- (new file) wp-content/jpcrm-storage/fonts/NotoSans-Regular.ufm
- (new file) wp-content/jpcrm-storage/fonts/NotoSans-Bold.ufm
- (new file) wp-content/jpcrm-storage/fonts/NotoSans-BoldItalic.ufm
- (new file) wp-content/jpcrm-storage/fonts/NotoSans-Regular.ttf
- (new file) wp-content/jpcrm-storage/fonts/NotoSans-Italic.ttf
- (new file) wp-content/jpcrm-storage/fonts/fonts-info.txt
- ...
Filesystem: 1,369 new files
Database: 34 new tables, 8 new options
New tables |
---|
wp_zbs_tags_links |
wp_zbs_event_reminders |
wp_zbs_invoices |
wp_zbs_object_links |
wp_zbs_quotes |
wp_zbs_admlog |
wp_zbs_dbmigration_meta |
wp_zbs_companies |
wp_zbs_notifications |
wp_zbs_sys_email |
... |
New WordPress options |
---|
widget_recent-posts |
widget_zbs_form_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
zbs_wizard_run |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Jetpack CRM - Clients, Leads, Invoices, Billing, Email Marketing, & Automation
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,100 ▲353 | 14.94 ▲0.56 | 4.74 ▲2.85 | 39.87 ▼2.08 |
Dashboard /wp-admin | 2,439 ▲262 | 6.27 ▲0.74 | 122.09 ▲19.02 | 43.43 ▼12.39 |
Posts /wp-admin/edit.php | 2,372 ▲269 | 3.64 ▲1.67 | 53.59 ▲16.74 | 36.88 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,647 ▲121 | 23.93 ▲0.89 | 665.77 ▼81.05 | 32.87 ▼30.77 |
Media Library /wp-admin/upload.php | 1,507 ▲110 | 4.20 ▼0.01 | 82.05 ▼24.49 | 41.99 ▼2.72 |
Quotes /wp-admin/admin.php?page=manage-quotes | 1,553 | 1.87 | 31.51 | 118.59 |
Team /wp-admin/admin.php?page=zerobscrm-team | 2,305 | 5.06 | 97.75 | 85.53 |
Dashboard /wp-admin/admin.php?page=zerobscrm-dash | 2,924 | 6.21 | 124.28 | 78.16 |
CRM Settings /wp-admin/admin.php?page=zerobscrm-plugin-settings | 3,078 | 5.03 | 82.26 | 88.51 |
Contacts /wp-admin/admin.php?page=manage-customers | 2,583 | 5.94 | 90.18 | 113.19 |
System Assistant /wp-admin/admin.php?page=zerobscrm-systemstatus | 6,967 | 4.97 | 82.93 | 142.74 |
Extensions /wp-admin/admin.php?page=zerobscrm-extensions | 2,636 | 5.12 | 80.14 | 160.10 |
Welcome /wp-admin/admin.php?page=zerobscrm-plugin | 2,437 | 4.83 | 67.02 | 133.94 |
Export Tools /wp-admin/admin.php?page=zbs-export-tools | 2,187 | 4.78 | 80.42 | 114.65 |
Segments /wp-admin/admin.php?page=manage-segments | 2,414 | 5.36 | 93.47 | 58.96 |
Uninstaller [IO: ▲1.61MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 34 tables
- wp_zbs_segments
- wp_zbs_dbmigration_meta
- wp_zbs_aka
- wp_zbs_contacts
- wp_zbs_security_log
- wp_zbs_sys_cronmanagerlogs
- wp_zbs_companies
- wp_zbs_customfields
- wp_zbs_sys_email_hist
- wp_zbs_tracking
- ...
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- widget_zbs_form_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- zbs_wizard_run
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/zero-bs-crm/vendor/masterminds/html5/bin/entities.php
- 214× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Frame' not found in wp-content/plugins/zero-bs-crm/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php:27
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\RuleValueList' not found in wp-content/plugins/zero-bs-crm/vendor/sabberworm/php-css-parser/src/Value/CalcRuleValueList.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zero-bs-crm/includes/ZeroBSCRM.PluginAdminNotices.php:66
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/zero-bs-crm/vendor/phenx/php-font-lib/src/FontLib/OpenType/File.php:16
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\CRM\\Automation\\Base_Action' not found in wp-content/plugins/zero-bs-crm/src/automation/commons/actions/transactions/class-set-transaction-status.php:21
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\CRM\\Automation\\Base_Trigger' not found in wp-content/plugins/zero-bs-crm/src/automation/commons/triggers/invoices/class-invoice-updated.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Masterminds\\HTML5\\Parser\\InputStream' not found in wp-content/plugins/zero-bs-crm/vendor/masterminds/html5/src/HTML5/Parser/StringInputStream.php:46
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/zero-bs-crm/vendor/phenx/php-svg-lib/src/Svg/Document.php:30
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\CRM\\Automation\\Base_Condition' not found in wp-content/plugins/zero-bs-crm/src/automation/commons/conditions/transactions/class-transaction-field.php:22
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\CRM\\Entities\\Factories\\Entity_Factory' not found in wp-content/plugins/zero-bs-crm/src/entities/factories/class-task-factory.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=zerobscrm-team
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=zerobscrm-team 464:45 Uncaught SyntaxError: Unexpected token '{'
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
zero-bs-crm/ZeroBSCRM.php 92% from 13 tests
"Jetpack CRM - Clients, Leads, Invoices, Billing, Email Marketing, & Automation" version 6.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("zero-bs-crm.php" instead of "ZeroBSCRM.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin353,025 lines of code in 1,052 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 176 | 27,064 | 21,036 | 167,557 |
PHP | 593 | 50,620 | 60,901 | 128,979 |
JavaScript | 160 | 3,590 | 8,664 | 29,713 |
PO File | 3 | 5,582 | 8,867 | 12,738 |
SVG | 9 | 0 | 13 | 5,668 |
Markdown | 20 | 707 | 0 | 2,337 |
Sass | 23 | 430 | 43 | 1,900 |
TypeScript | 34 | 226 | 49 | 1,627 |
HTML | 16 | 68 | 26 | 1,255 |
JSON | 13 | 0 | 0 | 1,140 |
JSX | 4 | 11 | 4 | 85 |
XML | 1 | 0 | 0 | 26 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,183)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 207)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 34.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,183.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 207.00 |
Code structure | ||
---|---|---|
Namespaces | 57 | |
Interfaces | 16 | |
Traits | 0 | |
Classes | 430 | |
▷ Abstract classes | 23 | 5.35% |
▷ Concrete classes | 407 | 94.65% |
▷ Final classes | 5 | 1.23% |
Methods | 4,175 | |
▷ Static methods | 466 | 11.16% |
▷ Public methods | 3,475 | 83.23% |
▷ Protected methods | 492 | 11.78% |
▷ Private methods | 208 | 4.98% |
Functions | 1,433 | |
▷ Named functions | 1,368 | 95.46% |
▷ Anonymous functions | 65 | 4.54% |
Constants | 344 | |
▷ Global constants | 84 | 24.42% |
▷ Class constants | 260 | 75.58% |
▷ Public constants | 255 | 98.08% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
169 PNG files occupy 2.29MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
i/ext/system-email.png | 6.32KB | 3.13KB | ▼ 50.43% |
i/filetypes/php.png | 1.47KB | 1.38KB | ▼ 6.42% |
i/filetypes/py.png | 1.46KB | 1.41KB | ▼ 3.55% |
i/filetypes/tgz.png | 1.69KB | 1.52KB | ▼ 9.85% |
i/customers.png | 7.97KB | 4.11KB | ▼ 48.46% |