Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▲1.05ms] Passed 4 tests
Analyzing server-side resources used by Connector to CiviCRM with CiviMcRestFace
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 38.61 ▼2.00 |
Dashboard /wp-admin | 3.61 ▲0.30 | 50.17 ▲2.12 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 50.66 ▲0.70 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 98.58 ▲6.12 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 38.89 ▲3.36 |
CiviCRM McRestFace Log /wp-admin/options-general.php?page=wpcmrf_calllog | 3.43 | 35.44 |
CiviCRM McRestFace Connections /wp-admin/options-general.php?page=wpcmrf_admin | 3.43 | 34.57 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 37 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wpcmrf_core_call |
wp_wpcivimrf_profile |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
wpcmrf_version |
Browser metrics Passed 4 tests
Connector to CiviCRM with CiviMcRestFace: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.60 ▼1.01 | 1.56 ▼0.75 | 40.03 ▼6.41 |
Dashboard /wp-admin | 2,211 ▲20 | 4.86 ▼0.04 | 107.60 ▲4.12 | 46.45 ▲4.52 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.00 ▲0.00 | 40.67 ▲0.55 | 34.43 ▼3.18 |
Add New Post /wp-admin/post-new.php | 1,520 ▼1 | 23.66 ▲0.30 | 593.87 ▼83.71 | 52.68 ▼5.09 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.18 ▼0.01 | 97.38 ▼10.60 | 44.17 ▼0.26 |
CiviCRM McRestFace Log /wp-admin/options-general.php?page=wpcmrf_calllog | 789 | 2.02 | 23.51 | 25.26 |
CiviCRM McRestFace Connections /wp-admin/options-general.php?page=wpcmrf_admin | 780 | 2.15 | 26.87 | 25.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/connector-civicrm-mcrestface/wpcmrf.php
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/connector-civicrm-mcrestface/views/calllog.php:9
- > PHP Fatal error
Uncaught Error: Class 'CMRF\\Connection\\Curl' not found in wp-content/plugins/connector-civicrm-mcrestface/CMRF/Wordpress/Connection/Curl.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/connector-civicrm-mcrestface/views/form.php:9
- > PHP Fatal error
Uncaught Error: Class 'CMRF\\PersistenceLayer\\CallFactory' not found in wp-content/plugins/connector-civicrm-mcrestface/vendor/civimrf/cmrf_abstract_core/CMRF/PersistenceLayer/SQLPersistingCallFactory.php:15
- > PHP Fatal error
Uncaught Error: Class 'CMRF\\Core\\Connection' not found in wp-content/plugins/connector-civicrm-mcrestface/vendor/civimrf/cmrf_abstract_core/CMRF/Connection/Local.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMRF\\Core\\AbstractCall' not found in wp-content/plugins/connector-civicrm-mcrestface/CMRF/Wordpress/Call.php:16
- > PHP Fatal error
Uncaught Error: Class 'CMRF\\Connection\\Local' not found in wp-content/plugins/connector-civicrm-mcrestface/CMRF/Wordpress/Connection/Local.php:11
- > PHP Fatal error
Uncaught Error: Class 'CMRF\\Core\\Connection' not found in wp-content/plugins/connector-civicrm-mcrestface/vendor/civimrf/cmrf_abstract_core/CMRF/Connection/CurlAuthX.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/connector-civicrm-mcrestface/views/profiles.php:9
- > PHP Fatal error
Uncaught Error: Interface 'CMRF\\Core\\Call' not found in wp-content/plugins/connector-civicrm-mcrestface/vendor/civimrf/cmrf_abstract_core/CMRF/Core/AbstractCall.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: civicrm, connector, rest, api
connector-civicrm-mcrestface/wpcmrf.php 69% from 13 tests
The main PHP script in "Connector to CiviCRM with CiviMcRestFace" version 1.0.7 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("connector-civicrm-mcrestface.php" instead of "wpcmrf.php")
- Domain Path: The domain path folder does not exist ("/languages")
- Description: Please don't use more than 140 characters for the plugin description (currently 207 characters long)
- 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,935 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 468 | 697 | 1,878 |
JSON | 3 | 0 | 0 | 57 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 3 | 16.67% |
▷ Concrete classes | 15 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 195 | |
▷ Static methods | 28 | 14.36% |
▷ Public methods | 171 | 87.69% |
▷ Protected methods | 21 | 10.77% |
▷ Private methods | 3 | 1.54% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin