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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼15.30ms] Passed 4 tests
An overview of server-side resources used by Document & Data Automation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 41.17 ▲0.89 |
Dashboard /wp-admin | 3.63 ▲0.28 | 51.51 ▼16.41 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 46.77 ▲3.37 |
Add New Post /wp-admin/post-new.php | 5.14 ▼0.75 | 59.18 ▼37.57 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 28.54 ▼8.11 |
Options /wp-admin/admin.php?page=document-data-automation/views/options.php | 3.64 | 33.55 |
Users /wp-admin/admin.php?page=document-data-automation/views/DXOoptionsUsers.php | 3.58 | 36.08 |
Docxpresso documents /wp-admin/admin.php?page=document-data-automation/views/DXOEdit.php | 3.53 | 33.70 |
Docxpresso documents /wp-admin/admin.php?page=document-data-automation/views/DXOResponseURL.php | 3.51 | 33.39 |
Docxpresso documents /wp-admin/admin.php?page=document-data-automation/views/DXODownload.php | 3.51 | 30.17 |
Templates /wp-admin/admin.php?page=document-data-automation/views/template.php | 3.68 | 31.28 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Document & Data Automation
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲120 | 14.77 ▲0.14 | 2.08 ▲0.29 | 44.91 ▲1.05 |
Dashboard /wp-admin | 2,232 ▲44 | 5.86 ▲0.04 | 97.70 ▼6.90 | 87.23 ▲48.27 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.02 ▼0.00 | 34.30 ▼2.45 | 34.46 ▼3.68 |
Add New Post /wp-admin/post-new.php | 6,396 ▲4,866 | 28.23 ▲4.96 | 955.45 ▲201.46 | 40.01 ▼23.92 |
Media Library /wp-admin/upload.php | 1,438 ▲59 | 4.13 ▼0.16 | 120.44 ▲17.74 | 47.08 ▲2.78 |
Options /wp-admin/admin.php?page=document-data-automation/views/options.php | 1,691 | 2.86 | 62.87 | 62.81 |
Users /wp-admin/admin.php?page=document-data-automation/views/DXOoptionsUsers.php | 950 | 1.73 | 25.03 | 28.36 |
Docxpresso documents /wp-admin/admin.php?page=document-data-automation/views/DXOEdit.php | 617 | 1.41 | 6.98 | 12.36 |
Docxpresso documents /wp-admin/admin.php?page=document-data-automation/views/DXOResponseURL.php | 767 | 1.96 | 0.03 | 3.44 |
Docxpresso documents /wp-admin/admin.php?page=document-data-automation/views/DXODownload.php | 617 | 1.41 | 7.60 | 4.60 |
Templates /wp-admin/admin.php?page=document-data-automation/views/template.php | 838 | 2.50 | 29.65 | 25.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=document-data-automation/views/options.php
- > Notice in wp-content/plugins/document-data-automation/views/options.php+176
Undefined index: dxoRedirectType
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=document-data-automation/views/DXODownload.php
- > Notice in wp-content/plugins/document-data-automation/views/DXODownload.php+19
Undefined index: template
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=document-data-automation/views/DXODownload.php
- > Notice in wp-content/plugins/document-data-automation/views/DXODownload.php+20
Undefined index: token
- > GET request to /wp-admin/admin.php?page=document-data-automation/views/DXOEdit.php
- > Notice in wp-content/plugins/document-data-automation/views/DXOEdit.php+13
Undefined index: metaData
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=document-data-automation/views/template.php
- > Notice in wp-content/plugins/document-data-automation/views/template.php+30
Undefined index: pKey
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=document-data-automation/views/template.php
- > Notice in wp-content/plugins/document-data-automation/views/template.php+58
Undefined index: DocxpressoUrl
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=document-data-automation/views/template.php
- > Notice in wp-content/plugins/document-data-automation/views/template.php+32
Undefined index: email
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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/document-data-automation/views/DXOoptionsUsers.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/document-data-automation/views/partials/dashboard_admin.php:3
- > PHP Warning
require_once(ABSPATHwp-admin/admin.php): failed to open stream: No such file or directory in wp-content/plugins/document-data-automation/views/DXOoptionsUsers.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/document-data-automation/views/partials/dashboard_user.php:4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/document-data-automation/views/DXOoptionsUsers.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/document-data-automation/widgets.php:14
- > PHP Warning
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)
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=document-data-automation/views/DXOResponseURL.php
- > Network (severe)
documents/preview/?uniqid=6524054d88eb04766159×tamp=1696859469&APIKEY=a829d52f6284a135a3f3eba1f0f705f7ae383d54&options=eyJkaXNwbGF5IjoiZG9jdW1lbnQiLCJlbmR1c2VyaWQiOiIiLCJyZWZlcmVuY2UiOiIiLCJyZXNwb25zZVVSTCI6Imh0dHA6XC9cL3dwLmNvbVwvd3AtYWRtaW5cL2FkbWluLnBocD9wYWdlPWRvY3VtZW50LWRhdGEtYXV0b21hdGlvbiUyRnZpZXdzJTJGRFhPUmVzcG9uc2VVUkwucGhwIiwicGx1Z2luIjoxfQ,, - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=document-data-automation/views/DXODownload.php
- > Network (severe)
documents/getFullDocumentation/?uniqid=65240550d096f7597492×tamp=1696859472&APIKEY=1d1bace46c15e6d96081a916d71f8ce659581b1b&options=eyJ0b2tlbiI6bnVsbH0, - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=document-data-automation/views/template.php
- > Network (severe)
RESTservices/predefined/last_used_templates/10?uniqid=6524055279d753330400×tamp=1696859474&APIKEY=cf4271fa8cf3e5f70e92d6eba08b523a3d151eec&callback=jQuery37008561849624125255_1696859474530&_=1696859474531 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=document-data-automation/views/template.php
- > Network (severe)
RESTservices/predefined/latest_templates/10/NULL/0?uniqid=6524055279d82386933×tamp=1696859474&APIKEY=57b844102867529448f1093d48e8dba6c1a42077&callback=jQuery37008561849624125255_1696859474532&_=1696859474533 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: docxpresso, documents, online documents, forms, data
document-data-automation/document-data-automation.php 85% from 13 tests
The main PHP file in "Document & Data Automation" ver. 1.6.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,772 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 306 | 168 | 2,443 |
JavaScript | 12 | 243 | 254 | 1,706 |
CSS | 2 | 45 | 4 | 312 |
PO File | 1 | 118 | 118 | 288 |
Pascal | 1 | 5 | 17 | 23 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 275.00 |
▷ Minimum class complexity | 275.00 |
▷ Maximum class complexity | 275.00 |
Average method complexity | 5.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.76% |
Functions | 12 | |
▷ Named functions | 12 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/micrologo.png | 0.45KB | 0.36KB | ▼ 18.42% |
img/logo.png | 17.00KB | 2.29KB | ▼ 86.53% |
img/icono-dx-wp.png | 0.53KB | 0.35KB | ▼ 34.92% |
img/micro-dxo-wp.png | 0.57KB | 0.51KB | ▼ 10.65% |