Benchmarks
Plugin footprint 83% 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: ▲0.37MB] [CPU: ▲0.68ms] Passed 4 tests
Analyzing server-side resources used by GRC Contact API for Sendinblue
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.39 | 43.15 ▲1.35 |
Dashboard /wp-admin | 3.70 ▲0.40 | 51.42 ▲0.15 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 46.28 ▼2.38 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 99.77 ▲6.87 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 39.87 ▲3.59 |
Logs API error /wp-admin/admin.php?page=crm-grc-contact-by-sg-error-logs | 3.54 | 38.97 |
Les APIs /wp-admin/edit.php?post_type=grc_form_api | 3.66 | 38.15 |
Logs API succès /wp-admin/admin.php?page=crm-grc-contact-by-sg-logs | 3.54 | 35.95 |
Nouvelle API /wp-admin/post-new.php?post_type=grc_form_api | 3.60 | 48.09 |
Configuration /wp-admin/admin.php?page=crm-grc-contact-by-sg-index | 3.53 | 31.68 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 161 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_crm_grc_contact_logs |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
activated_crm-grc-contact-by-sg |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for GRC Contact API for Sendinblue
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲86 | 14.35 ▼0.17 | 1.87 ▼0.89 | 39.58 ▼5.73 |
Dashboard /wp-admin | 2,256 ▲76 | 5.67 ▲0.10 | 82.04 ▼11.04 | 75.90 ▲36.87 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.09 ▲0.06 | 38.35 ▲1.32 | 38.04 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 23.00 ▼0.20 | 688.85 ▲19.13 | 53.73 ▼2.04 |
Media Library /wp-admin/upload.php | 1,436 ▲33 | 4.19 ▼0.01 | 113.32 ▲10.60 | 70.48 ▲20.31 |
Logs API error /wp-admin/admin.php?page=crm-grc-contact-by-sg-error-logs | 835 | 1.99 | 25.65 | 27.61 |
Les APIs /wp-admin/edit.php?post_type=grc_form_api | 1,115 | 1.90 | 30.93 | 28.44 |
Logs API succès /wp-admin/admin.php?page=crm-grc-contact-by-sg-logs | 838 | 1.99 | 24.23 | 26.10 |
Nouvelle API /wp-admin/post-new.php?post_type=grc_form_api | 2,265 | 2.59 | 50.68 | 62.01 |
Configuration /wp-admin/admin.php?page=crm-grc-contact-by-sg-index | 872 | 2.01 | 25.65 | 26.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- activated_crm-grc-contact-by-sg
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 60× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/crm-grc-contact-by-sg/vendor/guzzlehttp/psr7/src/NoSeekStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/crm-grc-contact-by-sg/vendor/guzzlehttp/psr7/src/Stream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/crm-grc-contact-by-sg/vendor/guzzlehttp/promises/src/EachPromise.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function crmGrcContact\\plugin_basename() in wp-content/plugins/crm-grc-contact-by-sg/wp-crm-grc-contact.php:28
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/crm-grc-contact-by-sg/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/crm-grc-contact-by-sg/template/crm-grc-contact-by-sg-error-logs.php:8
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/crm-grc-contact-by-sg/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/crm-grc-contact-by-sg/vendor/guzzlehttp/psr7/src/AppendStream.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/crm-grc-contact-by-sg/template/part/crm-grc-contact-token-missing.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/crm-grc-contact-by-sg/template/crm-grc-contact-key-box.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: api, sendinblue, grc contact
crm-grc-contact-by-sg/wp-crm-grc-contact.php 85% from 13 tests
Analyzing the main PHP file in "GRC Contact API for Sendinblue" version 1.0.3
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("crm-grc-contact-by-sg.php" instead of "wp-crm-grc-contact.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin13,557 lines of code in 145 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 2,005 | 6,177 | 9,430 |
Markdown | 12 | 1,132 | 0 | 3,453 |
JSON | 8 | 0 | 0 | 629 |
CSS | 1 | 0 | 0 | 21 |
XML | 1 | 0 | 0 | 15 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 13.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 20 | |
Traits | 3 | |
Classes | 76 | |
▷ Abstract classes | 1 | 1.32% |
▷ Concrete classes | 75 | 98.68% |
▷ Final classes | 20 | 26.67% |
Methods | 760 | |
▷ Static methods | 125 | 16.45% |
▷ Public methods | 623 | 81.97% |
▷ Protected methods | 16 | 2.11% |
▷ Private methods | 121 | 15.92% |
Functions | 152 | |
▷ Named functions | 57 | 37.50% |
▷ Anonymous functions | 95 | 62.50% |
Constants | 70 | |
▷ Global constants | 7 | 10.00% |
▷ Class constants | 63 | 90.00% |
▷ Public constants | 63 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 10.82KB | 4.60KB | ▼ 57.45% |