Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.24ms] Passed 4 tests
An overview of server-side resources used by Designil PDPA Thailand
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 38.83 ▼0.77 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.83 ▼4.21 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 53.89 ▲1.04 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 95.07 ▼10.50 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.64 ▼5.49 |
Cookie Scanner (PRO) /wp-admin/admin.php?page=pdpa-thailand-scanner | 3.26 | 32.52 |
PDPA Thailand /wp-admin/admin.php?page=pdpa-thailand | 3.29 | 38.86 |
Server storage [IO: ▲0.30MB] [DB: ▲0.03MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
pdpa_thailand_settings |
can_compress_scripts |
pdpa_thailand_installed |
db_upgraded |
pdpa_thailand_msg |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Designil PDPA Thailand
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲155 | 14.26 ▼0.01 | 4.76 ▲3.13 | 70.80 ▲27.97 |
Dashboard /wp-admin | 2,227 ▲47 | 5.62 ▼0.04 | 91.02 ▲3.17 | 43.28 ▲2.37 |
Posts /wp-admin/edit.php | 2,129 ▲26 | 2.02 ▲0.08 | 39.32 ▼0.95 | 37.72 ▲1.27 |
Add New Post /wp-admin/post-new.php | 1,559 ▲31 | 23.09 ▲0.00 | 609.46 ▼19.67 | 49.99 ▼5.98 |
Media Library /wp-admin/upload.php | 1,432 ▲29 | 4.19 ▼0.02 | 98.01 ▼9.44 | 41.46 ▼4.92 |
Cookie Scanner (PRO) /wp-admin/admin.php?page=pdpa-thailand-scanner | 820 | 2.00 | 24.27 | 26.19 |
PDPA Thailand /wp-admin/admin.php?page=pdpa-thailand | 1,401 | 3.11 | 40.56 | 63.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PDPA_THAILAND_Public' not found in wp-content/plugins/pdpa-thailand/template/popup.php:10
- > PHP Fatal error
Uncaught Error: Class 'PDPA_THAILAND_Public' not found in wp-content/plugins/pdpa-thailand/template/sidebar.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
7 plugin tags: law, thai, pdpa, thailand, cookie...
pdpa-thailand/pdpa-thailand.php Passed 13 tests
The main PHP script in "Designil PDPA Thailand" version 1.2.4 is automatically included on every request by WordPress
84 characters long description:
Support Thai PDPA law by manage cookie systematic and allow to ask consent from user
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3,623 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 292 | 204 | 1,515 |
Sass | 2 | 161 | 6 | 861 |
JavaScript | 6 | 111 | 98 | 381 |
SVG | 12 | 15 | 4 | 356 |
CSS | 3 | 36 | 8 | 320 |
PO File | 1 | 69 | 75 | 190 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 29.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 56 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 56 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 compressed PNG files occupy 0.02MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/logo.png | 6.85KB | 5.83KB | ▼ 14.90% |
admin/assets/images/info-max-container-size.png | 5.66KB | 5.16KB | ▼ 8.70% |
admin/assets/images/info-logo.png | 8.31KB | 6.92KB | ▼ 16.68% |