79% sync-snapp-ecommerce

Code Review | Sync Snapp Ecommerce

WordPress plugin Sync Snapp Ecommerce scored79%from 54 tests.

About plugin

  • Plugin page: sync-snapp-ecommerce
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7.1
  • WordPress version: 6.3.1
  • First release: Nov 13, 2020
  • Latest release: May 2, 2021
  • Number of updates: 21
  • Update frequency: every 8.1 days
  • Top authors: garamaleki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /697 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.26ms] Passed 4 tests

This is a short check of server-side resources used by Sync Snapp Ecommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.52 ▼7.50
Dashboard /wp-admin3.33 ▼0.0146.28 ▼10.84
Posts /wp-admin/edit.php3.38 ▲0.0348.34 ▲0.37
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.08 ▼11.06
Media Library /wp-admin/upload.php3.26 ▲0.0337.42 ▲3.68
Sync Snapp /wp-admin/options-general.php?page=snapp-ecommerce3.2033.38

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
snapp_ecommerce_key
theysaidso_admin_options
snapp_ecommerce_number_of_rows

Browser metrics Passed 4 tests

A check of browser resources used by Sync Snapp Ecommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.77 ▼0.611.89 ▼0.1141.63 ▼2.21
Dashboard /wp-admin2,210 ▲225.86 ▲0.86103.01 ▼46.5940.34 ▼6.71
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0540.68 ▼0.0435.20 ▼4.00
Add New Post /wp-admin/post-new.php1,517 ▼1117.46 ▼5.97671.58 ▼0.9164.81 ▲8.06
Media Library /wp-admin/upload.php1,395 ▲104.16 ▼0.0496.46 ▼8.1642.39 ▼1.17
Sync Snapp /wp-admin/options-general.php?page=snapp-ecommerce8172.0224.1953.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • snapp_ecommerce_number_of_rows
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • snapp_ecommerce_key

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=snapp-ecommerce
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=snapp-ecommerce
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sync-snapp-ecommerce/sync-snapp-ecommerce.php:95

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
2 plugin tags: woocommerce, snappfood

sync-snapp-ecommerce/sync-snapp-ecommerce.php Passed 13 tests

The main PHP file in "Sync Snapp Ecommerce" ver. 1.5.0 adds more information about the plugin and also serves as the entry point for this plugin
38 characters long description:
>- Sync products with Snapp Ecommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected120 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1207120

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin