67% connect-to-edara

Code Review | Connect to Edara

WordPress plugin Connect to Edara scored67%from 54 tests.

About plugin

  • Plugin page: connect-to-edara
  • Plugin version: 14.23111.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.5
  • WordPress version: 6.3.1
  • First release: Dec 6, 2020
  • Latest release: Nov 22, 2023
  • Number of updates: 113
  • Update frequency: every 9.6 days
  • Top authors: edraksoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,208 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲1.51MB] [CPU: ▲7.34ms] Passed 4 tests

An overview of server-side resources used by Connect to Edara
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.96 ▲1.4946.37 ▲2.92
Dashboard /wp-admin4.86 ▲1.5555.36 ▲9.25
Posts /wp-admin/edit.php4.91 ▲1.5556.47 ▲8.37
Add New Post /wp-admin/post-new.php7.39 ▲1.50103.33 ▲11.50
Media Library /wp-admin/upload.php4.72 ▲1.4945.00 ▲8.83

Server storage [IO: ▲11.81MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • You have illegally modified 1 file (0.91KB) outside of "wp-content/plugins/connect-to-edara/" and "wp-content/uploads/"
    • (new file) log_system.log
Filesystem: 3,232 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Connect to Edara
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4414.67 ▲0.331.70 ▼0.0337.45 ▼3.89
Dashboard /wp-admin2,211 ▲315.63 ▼0.0193.27 ▼3.0439.21 ▼4.53
Posts /wp-admin/edit.php2,116 ▲161.94 ▼0.0838.41 ▼2.5434.15 ▼1.74
Add New Post /wp-admin/post-new.php1,397 ▼12921.51 ▼2.17514.06 ▼113.6357.12 ▼17.18
Media Library /wp-admin/upload.php1,410 ▲134.27 ▼0.0195.59 ▼5.9743.54 ▲1.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 16× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/connect-to-edara/Includes/addStore.php
    • > /wp-content/plugins/connect-to-edara/Includes/data1.php
    • > /wp-content/plugins/connect-to-edara/Includes/second_step.php
    • > /wp-content/plugins/connect-to-edara/vendor/phpcompatibility/php-compatibility/phpunit-bootstrap.php
    • > /wp-content/plugins/connect-to-edara/api/continueSync.php
    • > /wp-content/plugins/connect-to-edara/Includes/done.php
    • > /wp-content/plugins/connect-to-edara/Includes/reSync.php
    • > /wp-content/plugins/connect-to-edara/Includes/data2.php
    • > /wp-content/plugins/connect-to-edara/Includes/data_get_services.php
    • > /wp-content/plugins/connect-to-edara/vendor/squizlabs/php_codesniffer/scripts/build-phar.php
  • 1520× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/connect-to-edara/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff' not found in wp-content/plugins/connect-to-edara/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Commenting/FunctionCommentSniff.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/connect-to-edara/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/connect-to-edara/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ColourDefinitionSniff.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Core\\AbstractMethodUnitTest' not found in wp-content/plugins/connect-to-edara/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizer/AnonClassParenthesisOwnerTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/connect-to-edara/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\Constraint\\Constraint' not found in wp-content/plugins/connect-to-edara/vendor/phpunit/phpunit/src/Framework/Constraint/IsTrue.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'PHP_CodeSniffer\\Reports\\Report' not found in wp-content/plugins/connect-to-edara/vendor/squizlabs/php_codesniffer/src/Reports/Notifysend.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/connect-to-edara/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/DocCommentSniff.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/connect-to-edara/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/DisallowSelfActionsSniff.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8 in connect-to-edara/assets to your readme.txt
You can look at the official readme.txt

connect-to-edara/index.php 92% from 13 tests

"Connect to Edara" version 14.23111.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("connect-to-edara.php" instead of "index.php")

Code Analysis 3% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
These items require your attention
  • Do not distribute dangerous files with your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/connect-to-edara/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat
      • wp-content/plugins/connect-to-edara/vendor/squizlabs/php_codesniffer/bin/phpcs.bat
205,401 lines of code in 2,751 files:
LanguageFilesBlank linesComment linesLines of code
PHP2,14640,36679,682173,789
Markdown984,224010,689
XML1744367375,433
Pascal1112,3855,0665,062
JSON552304,987
JavaScript637668742,185
reStructuredText381,0451,3241,232
CSS3821598773
YAML16971612
XSD260447
Ant3220100
Python17015542
make212038
DOS Batch241010
SVG2002

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 316)
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity10.20
▷ Minimum class complexity1.00
▷ Maximum class complexity462.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity316.00
Code structure
Namespaces354
Interfaces120
Traits13
Classes2,008
▷ Abstract classes663.29%
▷ Concrete classes1,94296.71%
▷ Final classes40420.80%
Methods8,708
▷ Static methods1,12712.94%
▷ Public methods7,17682.41%
▷ Protected methods7678.81%
▷ Private methods7658.79%
Functions819
▷ Named functions59472.53%
▷ Anonymous functions22527.47%
Constants467
▷ Global constants11324.20%
▷ Class constants35475.80%
▷ Public constants30485.88%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin