Benchmarks
Plugin footprint Passed 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.30MB] [CPU: ▼141.87ms] Passed 4 tests
This is a short check of server-side resources used by Overstock Affiliate Links
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.10 ▲0.38 | 37.10 ▲16.20 |
Dashboard /wp-admin | 3.39 ▲0.33 | 48.26 ▲5.84 |
Posts /wp-admin/edit.php | 3.44 ▲0.33 | 34.92 ▼10.17 |
Add New Post /wp-admin/post-new.php | 5.69 ▲0.25 | 93.56 ▼565.20 |
Media Library /wp-admin/upload.php | 3.27 ▲0.27 | 34.01 ▲2.04 |
sandbox /wp-admin/admin.php?page=ostk-sandbox | 3.22 | 30.58 |
contact /wp-admin/admin.php?page=ostk-contact | 3.24 | 24.00 |
documentation /wp-admin/admin.php?page=ostk-documentation | 3.22 | 30.88 |
Overstock Affiliate Links /wp-admin/admin.php?page=ostk-home | 3.25 | 27.69 |
Server storage [IO: ▲14.57MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3,432 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Overstock Affiliate Links
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,018 ▲422 | 17.23 ▲1.64 | 17.29 ▲8.60 | 43.74 ▼7.46 |
Dashboard /wp-admin | 3,090 ▲156 | 7.04 ▲1.10 | 143.79 ▼2.31 | 137.27 ▲30.30 |
Posts /wp-admin/edit.php | 2,870 ▲131 | 3.24 ▲0.40 | 71.77 ▲9.21 | 91.07 ▼1.37 |
Add New Post /wp-admin/post-new.php | 3,987 ▲2,304 | 16.18 ▼2.53 | 472.25 ▲92.30 | 135.22 ▲22.06 |
Media Library /wp-admin/upload.php | 1,875 ▲62 | 5.65 ▲0.63 | 135.22 ▼10.06 | 147.42 ▲25.89 |
sandbox /wp-admin/admin.php?page=ostk-sandbox | 1,259 | 2.78 | 56.19 | 79.57 |
contact /wp-admin/admin.php?page=ostk-contact | 1,212 | 2.78 | 54.62 | 72.35 |
documentation /wp-admin/admin.php?page=ostk-documentation | 1,255 | 2.79 | 55.47 | 82.41 |
Overstock Affiliate Links /wp-admin/admin.php?page=ostk-home | 1,449 | 2.81 | 64.95 | 91.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=ostk-sandbox
- > Notice in wp-content/plugins/overstock-affiliate-links/sandbox_page.php+19
Undefined variable: shortcode
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ostk-documentation
- > Notice in wp-content/plugins/overstock-affiliate-links/doc_page.php+17
Undefined index: pattern
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/overstock-affiliate-links/admin_page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/overstock-affiliate-links/functions.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/overstock-affiliate-links/functions.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/overstock-affiliate-links/functions.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 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
No plugin tags provided
overstock-affiliate-links/overstock-shortcode.php 85% from 13 tests
"Overstock Affiliate Links" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("overstock-affiliate-links.php" instead of "overstock-shortcode.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/overstock-affiliate-links/css/src/node_modules/less/gradlew.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1,151 | 22,768 | 36,213 | 116,718 |
JSON | 315 | 38 | 0 | 39,592 |
Markdown | 179 | 8,368 | 0 | 21,783 |
LESS | 346 | 1,260 | 356 | 9,376 |
CSS | 81 | 9 | 194 | 4,724 |
PHP | 9 | 117 | 153 | 1,675 |
HTML | 5 | 81 | 3 | 1,651 |
XML | 7 | 0 | 0 | 651 |
SVG | 2 | 0 | 0 | 644 |
diff | 1 | 3 | 13 | 588 |
Perl | 1 | 87 | 170 | 582 |
YAML | 35 | 22 | 11 | 326 |
Gradle | 1 | 53 | 14 | 280 |
Bourne Again Shell | 1 | 20 | 21 | 123 |
DOS Batch | 1 | 24 | 2 | 64 |
make | 4 | 16 | 0 | 39 |
Bourne Shell | 1 | 5 | 2 | 27 |
C | 1 | 7 | 4 | 23 |
Handlebars | 1 | 3 | 0 | 19 |
Lisp | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 46 | |
▷ Named functions | 46 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
api/images/overstock-icon.png | 1.24KB | 0.53KB | ▼ 57.42% |
css/src/node_modules/hawk/images/logo.png | 70.05KB | 21.07KB | ▼ 69.93% |
css/src/node_modules/less/test/data/data-uri-fail.png | 51.19KB | 26.81KB | ▼ 47.62% |
api/images/overstock-arrows.png | 1.87KB | 0.75KB | ▼ 59.98% |
images/overstock-icon.png | 1.24KB | 0.53KB | ▼ 57.42% |