89% automation-app-referrer-tracking

Code Review | Automation.app Referrer Tracking

WordPress plugin Automation.app Referrer Tracking scored89%from 54 tests.

About plugin

  • Plugin page: automation-app-re...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 13, 2021
  • Latest release: Sep 13, 2021
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: automationapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /330 total downloads

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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Automation.app Referrer Tracking
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0623.60 ▼16.41
Dashboard /wp-admin3.32 ▲0.0241.07 ▼8.36
Posts /wp-admin/edit.php3.37 ▲0.0238.46 ▼6.43
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.13 ▼7.53
Media Library /wp-admin/upload.php3.25 ▲0.0239.00 ▲3.56

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Automation.app Referrer Tracking
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.26 ▼1.502.00 ▲0.2538.22 ▼5.60
Dashboard /wp-admin2,206 ▲185.80 ▲0.7496.85 ▼20.3039.32 ▼9.01
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0139.47 ▲0.0734.91 ▲0.07
Add New Post /wp-admin/post-new.php1,542 ▲2818.80 ▼2.70630.58 ▼4.6356.75 ▲1.41
Media Library /wp-admin/upload.php1,382 ▼04.19 ▲0.0294.65 ▼8.5240.43 ▼0.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: cookieless tracking, sales funnel tracking, automationapp tracking, woocommerce tracking, tracking customer referrer...

automation-app-referrer-tracking/woo-doc-referrer.php 85% from 13 tests

"Automation.app Referrer Tracking" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 244 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("automation-app-referrer-tracking.php" instead of "woo-doc-referrer.php")

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
Success! There were no dangerous files found in this plugin387 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1800320
PHP2112167

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin