Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > User error in wp-content/plugins/twism/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16.
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.27ms] Passed 4 tests
Server-side resources used by TWISM for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.71 ▼8.23 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.96 ▼4.47 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.83 ▲3.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.71 ▲0.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.09 ▲3.19 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 159 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
TWISM for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.60 ▼0.68 | 2.08 ▲0.18 | 43.25 ▼0.34 |
Dashboard /wp-admin | 2,206 ▲21 | 5.91 ▲1.01 | 106.20 ▼9.20 | 41.05 ▼8.76 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.09 | 38.86 ▲1.77 | 35.34 ▲0.12 |
Add New Post /wp-admin/post-new.php | 1,537 ▼5 | 18.24 ▼0.10 | 601.44 ▼31.03 | 54.38 ▲1.35 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.05 | 98.80 ▼0.39 | 41.52 ▼2.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
- 51× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/twism/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/twism/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/twism/vendor/guzzlehttp/promises/src/Promise.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/twism/vendor/guzzlehttp/psr7/src/CachingStream.php:13
- > PHP Fatal error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16. in wp-content/plugins/twism/vendor/composer/platform_check.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/twism/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/twism/vendor/guzzlehttp/psr7/src/UploadedFile.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/twism/vendor/guzzlehttp/psr7/src/LimitStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/twism/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/twism/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Contributors: Plugin contributors not specified
- Contributors: Please add at least on tag
twism/twism.php Passed 13 tests
The principal PHP file in "TWISM for WooCommerce" v. 1.4.0 is loaded by WordPress automatically on each request
51 characters long description:
A loyalty platform for local and online businesses.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin15,307 lines of code in 147 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 2,010 | 5,672 | 10,238 |
Markdown | 14 | 1,241 | 0 | 3,613 |
JSON | 11 | 0 | 0 | 1,439 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 13.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 76 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 76 | 100.00% |
▷ Final classes | 34 | 44.74% |
Methods | 743 | |
▷ Static methods | 139 | 18.71% |
▷ Public methods | 628 | 84.52% |
▷ Protected methods | 4 | 0.54% |
▷ Private methods | 111 | 14.94% |
Functions | 132 | |
▷ Named functions | 43 | 32.58% |
▷ Anonymous functions | 89 | 67.42% |
Constants | 67 | |
▷ Global constants | 4 | 5.97% |
▷ Class constants | 63 | 94.03% |
▷ Public constants | 52 | 82.54% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected