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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.14 | 58.23 ▲6.76 |
Dashboard /wp-admin | 3.50 ▲0.10 | 34.46 ▲0.86 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 39.45 ▼0.87 |
Add New Post /wp-admin/post-new.php | 6.97 ▼0.00 | 96.41 ▼1,165.84 |
Media Library /wp-admin/upload.php | 3.38 ▲0.09 | 23.37 ▼2.84 |
TrackDuck /wp-admin/options-general.php?page=trackduck_options | 3.35 | 24.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 16.21 ▲0.56 | 6.10 ▲0.18 | 2.86 ▲0.14 |
Dashboard /wp-admin | 2,897 ▲36 | 6.01 ▼0.16 | 121.52 ▼15.37 | 158.01 ▼25.09 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.24 ▼0.00 | 64.44 ▼1.90 | 132.61 ▼13.27 |
Add New Post /wp-admin/post-new.php | 1,664 ▼47 | 16.53 ▼4.08 | 399.70 ▼44.19 | 162.94 ▲5.08 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.52 ▼0.02 | 139.19 ▼9.35 | 184.26 ▼2.47 |
TrackDuck /wp-admin/options-general.php?page=trackduck_options | 1,056 | 2.77 | 314.39 | 112.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 42 | 13 | 314 |
JavaScript | 1 | 4 | 14 | 87 |
Markdown | 1 | 10 | 0 | 12 |
CSS | 1 | 0 | 1 | 11 |
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 code | 0.33 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 6 | 25.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ff.png | 13.06KB | 5.89KB | ▼ 54.89% |
images/chrome.png | 10.01KB | 4.82KB | ▼ 51.91% |