68% mytracker

Code Review | MyTracker

WordPress plugin MyTracker scored68%from 54 tests.

About plugin

  • Plugin page: mytracker
  • Plugin version: 1.0.4.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 30, 2023
  • Latest release: Apr 13, 2023
  • Number of updates: 12
  • Update frequency: every 16.1 days
  • Top authors: mytracker (91.67%)mihdan (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /486 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼1.46MB] [CPU: ▼53.85ms] Passed 4 tests

Analyzing server-side resources used by MyTracker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.53 ▼0.938.33 ▼32.42
Dashboard /wp-admin2.55 ▼0.759.75 ▼50.37
Posts /wp-admin/edit.php2.55 ▼0.819.36 ▼38.56
Add New Post /wp-admin/post-new.php2.55 ▼3.349.93 ▼94.06
Media Library /wp-admin/upload.php2.55 ▼0.688.80 ▼29.20
MyTracker /wp-admin/options-general.php?page=mytracker2.5610.70

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for MyTracker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,077 ▲31615.24 ▲0.8828.55 ▲26.7941.51 ▲0.46
Dashboard /wp-admin2,349 ▲1696.30 ▲0.65117.66 ▲23.1340.32 ▼0.01
Posts /wp-admin/edit.php2,285 ▲1823.51 ▲1.4848.88 ▲11.8629.92 ▼5.87
Add New Post /wp-admin/post-new.php1,539 ▲1123.62 ▲0.64663.38 ▼11.6838.02 ▼16.20
Media Library /wp-admin/upload.php1,422 ▲224.31 ▲0.1180.96 ▼32.5447.67 ▼2.03
MyTracker /wp-admin/options-general.php?page=mytracker1,2243.5448.6529.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the thickbox handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=mytracker
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the thickbox handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=mytracker
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the thickbox handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

SRP 50% from 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
The following issues need your attention
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Interface 'Auryn\\Reflector' not found in wp-content/plugins/mytracker/vendor/rdlowrey/auryn/lib/CachingReflector.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Auryn\\InjectorException' not found in wp-content/plugins/mytracker/vendor/rdlowrey/auryn/lib/ConfigException.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Auryn\\Reflector' not found in wp-content/plugins/mytracker/vendor/rdlowrey/auryn/lib/StandardReflector.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Auryn\\ReflectionCache' not found in wp-content/plugins/mytracker/vendor/rdlowrey/auryn/lib/ReflectionCacheApc.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Auryn\\ReflectionCache' not found in wp-content/plugins/mytracker/vendor/rdlowrey/auryn/lib/ReflectionCacheArray.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Auryn\\InjectorException' not found in wp-content/plugins/mytracker/vendor/rdlowrey/auryn/lib/InjectionException.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Auryn\\Injector' not found in wp-content/plugins/mytracker/vendor/rdlowrey/auryn/.phpstorm.meta.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
4 plugin tags: mailru, mytracker, analytics, vk

mytracker/mytracker.php Passed 13 tests

The main file in "MyTracker" v. 1.0.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
83 characters long description:
MyTracker is multi-platform analytics and attribution for mobile apps and websites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3,041 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP326561,3892,967
JSON10074

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity15.82
▷ Minimum class complexity1.00
▷ Maximum class complexity100.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces2
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods213
▷ Static methods3315.49%
▷ Public methods18184.98%
▷ Protected methods00.00%
▷ Private methods3215.02%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants51
▷ Global constants917.65%
▷ Class constants4282.35%
▷ Public constants3992.86%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin