90% simple-woo-to-sugarcrm

Code Review | Simple Woo to SugarCRM

WordPress plugin Simple Woo to SugarCRM scored90%from 54 tests.

About plugin

  • Plugin page: simple-woo-to-sug...
  • Plugin version: 1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 4, 2020
  • Latest release: Jul 7, 2020
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: natespring92 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /371 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.82ms] Passed 4 tests

An overview of server-side resources used by Simple Woo to SugarCRM
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.08 ▼5.05
Dashboard /wp-admin3.37 ▲0.0643.08 ▼3.99
Posts /wp-admin/edit.php3.42 ▲0.0647.25 ▼1.87
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.30 ▼12.38
Media Library /wp-admin/upload.php3.29 ▲0.0635.67 ▲1.90
Woo to Sugar Settings /wp-admin/options-general.php?page=swts-setting-admin3.2530.80

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Simple Woo to SugarCRM
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.67 ▼0.731.92 ▼0.1443.45 ▼5.31
Dashboard /wp-admin2,210 ▲225.79 ▼0.11101.16 ▼11.7240.36 ▼3.05
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0239.04 ▲0.3335.78 ▲5.06
Add New Post /wp-admin/post-new.php1,517 ▲317.42 ▼0.28607.70 ▼73.1149.69 ▼3.70
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0493.55 ▼18.0740.63 ▼9.11
Woo to Sugar Settings /wp-admin/options-general.php?page=swts-setting-admin7972.0626.8329.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: sugarcrm, integration, woo, sugar, woocommerce

simple-woo-to-sugarcrm/sfnap.php 92% from 13 tests

The entry point to "Simple Woo to SugarCRM" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-woo-to-sugarcrm.php" instead of "sfnap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin304 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17478304

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin