Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.01ms] Passed 4 tests
This is a short check of server-side resources used by Thnks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 44.77 ▲0.06 |
Dashboard /wp-admin | 3.33 ▼0.01 | 48.85 ▼20.00 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.31 ▲3.93 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 97.13 ▼2.41 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.04 ▼5.67 |
Server storage [IO: ▲1.07MB] [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: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Thnks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.73 ▲0.38 | 1.72 ▼0.12 | 43.81 ▼1.91 |
Dashboard /wp-admin | 2,212 ▲32 | 5.63 ▼0.02 | 92.57 ▼3.17 | 44.22 ▲4.83 |
Posts /wp-admin/edit.php | 2,117 ▲14 | 1.96 ▼0.05 | 40.22 ▲1.19 | 38.58 ▲2.65 |
Add New Post /wp-admin/post-new.php | 1,538 ▼0 | 23.22 ▼0.00 | 696.28 ▲55.60 | 55.14 ▲3.45 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.22 ▲0.04 | 99.58 ▼1.24 | 45.08 ▼0.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/thnks/views/fields/products/products-selector.php
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/thnks/views/fields/default-template/default-colors.php:4
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/thnks/views/fields/default-template/thank-you-message.php:3
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/thnks/views/fields/settings/enable-thnks.php:2
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/thnks/views/fields/default-template/support-box-color.php:4
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/thnks/views/fields/default-template/provide-information.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/thnks/templates/simple-template.php:8
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/thnks/views/fields/products/products-text-color-btn.php:4
- > PHP Notice
Undefined variable: args in wp-content/plugins/thnks/views/fields/products/products-selector.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/thnks/views/fields/products/products-selector.php on line 3
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/thnks/views/fields/default-template/information-channel.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Settings), #2 (Default page), #3 (Custom styles), #4 (Product), #5 (Demo)
thnks/thnks.php 77% from 13 tests
The main PHP file in "Thnks" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Description: Please improve your description making it at least 10 characters long (currently 6 characters long)
- Git Repository: A Git repository was detected inside this plugin
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 plugin1,682 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 74 | 81 | 861 |
CSS | 8 | 36 | 11 | 372 |
Sass | 3 | 9 | 3 | 355 |
JavaScript | 3 | 14 | 18 | 94 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 34 | |
▷ Static methods | 3 | 8.82% |
▷ Public methods | 34 | 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 | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.61MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/Default page.png | 88.36KB | 29.13KB | ▼ 67.03% |
assets/img/icon-128x128.png | 9.94KB | 4.95KB | ▼ 50.20% |
assets/img/Custom styles.png | 97.03KB | 31.69KB | ▼ 67.34% |
assets/img/Product.png | 92.18KB | 30.36KB | ▼ 67.07% |
assets/img/icon-256x256.png | 21.47KB | 10.24KB | ▼ 52.29% |