84% omega-add-paypal-tracking-for-woocommerce

Code Review | Synctrack - Sync PayPal Tracking Auto

WordPress plugin Synctrack - Sync PayPal Tracking Auto scored84%from 54 tests.

About plugin

  • Plugin page: omega-add-paypal-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Oct 7, 2020
  • Latest release: Sep 21, 2023
  • Number of updates: 39
  • Update frequency: every 27.7 days
  • Top authors: caselock (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

400+ active /1,929 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.07ms] Passed 4 tests

This is a short check of server-side resources used by Synctrack - Sync PayPal Tracking Auto
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.59 ▼1.80
Dashboard /wp-admin3.31 ▲0.0045.18 ▼7.71
Posts /wp-admin/edit.php3.36 ▲0.0047.44 ▼1.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.92 ▼9.13
Media Library /wp-admin/upload.php3.23 ▲0.0037.20 ▲0.72

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Synctrack - Sync PayPal Tracking Auto
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▼0.271.79 ▼0.1448.61 ▲5.77
Dashboard /wp-admin2,195 ▲245.58 ▲0.0489.69 ▼3.6640.44 ▼0.56
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0239.47 ▲3.8439.30 ▲0.97
Add New Post /wp-admin/post-new.php1,526 ▼223.08 ▼0.13659.43 ▼46.6655.68 ▼0.85
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0196.58 ▲3.5642.43 ▼0.89

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/omega-add-paypal-tracking-for-woocommerce/includes/ajax.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/omega-add-paypal-tracking-for-woocommerce/includes/admin/rating.php:60

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: Please take inspiration from this readme.txt

omega-add-paypal-tracking-for-woocommerce/omega-add-paypal-tracking.php 92% from 13 tests

The main PHP script in "Synctrack - Sync PayPal Tracking Auto" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("omega-add-paypal-tracking-for-woocommerce.php" instead of "omega-add-paypal-tracking.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,025 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP14209331684
JavaScript41410232
CSS2160108
SVG1001

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 code0.32
Average class complexity7.20
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods30
▷ Static methods620.00%
▷ Public methods2790.00%
▷ Protected methods00.00%
▷ Private methods310.00%
Functions19
▷ Named functions1263.16%
▷ Anonymous functions736.84%
Constants6
▷ Global constants6100.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