78% trackduck

Code Review | TrackDuck Visual Feedback with Screenshots

WordPress plugin TrackDuck Visual Feedback with Screenshots scored 78% from 54 tests.

About plugin

  • Plugin page: trackduck
  • Plugin version: 0.1.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 5.9.2
  • First release: Apr 20, 2014
  • Latest release: Jun 3, 2017
  • Number of updates: 35
  • Update frequency: every 32.6 days
  • Top authors: TrackDuck (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active / 7,222 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼292.17ms] Passed 4 tests

An overview of server-side resources used by TrackDuck Visual Feedback with Screenshots
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1458.23 ▲6.76
Dashboard /wp-admin3.50 ▲0.1034.46 ▲0.86
Posts /wp-admin/edit.php3.73 ▲0.0939.45 ▼0.87
Add New Post /wp-admin/post-new.php6.97 ▼0.0096.41 ▼1,165.84
Media Library /wp-admin/upload.php3.38 ▲0.0923.37 ▼2.84
TrackDuck /wp-admin/options-general.php?page=trackduck_options3.3524.18

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options
trackduck_options

Browser metrics Passed 4 tests

A check of browser resources used by TrackDuck Visual Feedback with Screenshots
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4616.21 ▲0.566.10 ▲0.182.86 ▲0.14
Dashboard /wp-admin2,897 ▲366.01 ▼0.16121.52 ▼15.37158.01 ▼25.09
Posts /wp-admin/edit.php2,693 ▼13.24 ▼0.0064.44 ▼1.90132.61 ▼13.27
Add New Post /wp-admin/post-new.php1,664 ▼4716.53 ▼4.08399.70 ▼44.19162.94 ▲5.08
Media Library /wp-admin/upload.php1,700 ▲25.52 ▼0.02139.19 ▼9.35184.26 ▼2.47
TrackDuck /wp-admin/options-general.php?page=trackduck_options1,0562.77314.39112.78

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 1 option
    • trackduck_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/trackduck/trackduck.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=trackduck_options
    • > Javascript (severe) in unknown
    /wp-content/plugins/trackduck/trackduck.js?ver=5.9.2 41 Access to XMLHttpRequest at 'https://app.trackduck.com/api/bar/settings/?url=http%3A%2F%2Fwp.com' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/options-general.php?page=trackduck_options
    • > Network (severe)
    wp-content/plugins/trackduck/trackduck.js?ver=5.9.2 41 Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/options-general.php?page=trackduck_options
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught DOMException: Failed to execute 'send' on 'XMLHttpRequest': Fail…k.com/api/bar/settings/?url=http%3A%2F%2Fwp.com'.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: user interface, testing, trackduck, feedback, reporting...

trackduck/trackduck.php 92% from 13 tests

This is the main PHP file of "TrackDuck Visual Feedback with Screenshots" version 0.1.1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 242 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin424 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP34213314
JavaScript141487
Markdown110012
CSS10111

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity8.33
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods625.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ff.png13.06KB5.89KB▼ 54.89%
images/chrome.png10.01KB4.82KB▼ 51.91%