Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼141.04ms] Passed 4 tests
An overview of server-side resources used by DSTitan
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 33.07 ▲15.25 |
Dashboard /wp-admin | 3.06 ▲0.00 | 44.88 ▲0.12 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 41.29 ▲0.28 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 87.78 ▼553.14 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 28.39 ▼11.43 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for DSTitan
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.04 ▲0.08 | 13.36 ▲2.48 | 48.12 ▼3.01 |
Dashboard /wp-admin | 2,973 ▲39 | 6.00 ▲0.00 | 148.68 ▲7.54 | 110.25 ▲1.55 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.70 ▼0.02 | 64.37 ▲1.22 | 94.12 ▲1.88 |
Add New Post /wp-admin/post-new.php | 1,683 ▲181 | 18.53 ▼0.13 | 366.87 ▼2.87 | 99.98 ▼4.65 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.00 | 159.55 ▲1.28 | 113.54 ▼4.57 |
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
Uninstaller ran successfully
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
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 45× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/ds-titan/vendor/guzzlehttp/psr7/src/CachingStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/ds-titan/vendor/guzzlehttp/promises/src/EachPromise.php:8
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/ds-titan/vendor/guzzlehttp/guzzle/src/Client.php:25
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/ds-titan/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/ds-titan/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/ds-titan/vendor/guzzlehttp/psr7/src/Uri.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/ds-titan/vendor/guzzlehttp/psr7/src/DroppingStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/ds-titan/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/ds-titan/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/ds-titan/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: dstitan, products, woocommerce
ds-titan/ds-titan.php 92% from 13 tests
The main PHP file in "DSTitan" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected12,574 lines of code in 120 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 98 | 1,820 | 5,005 | 8,855 |
Markdown | 10 | 995 | 0 | 3,193 |
JSON | 7 | 0 | 0 | 467 |
XML | 2 | 4 | 0 | 33 |
YAML | 1 | 4 | 0 | 14 |
make | 1 | 4 | 0 | 9 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 14.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 67 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 67 | 100.00% |
▷ Final classes | 8 | 11.94% |
Methods | 660 | |
▷ Static methods | 67 | 10.15% |
▷ Public methods | 546 | 82.73% |
▷ Protected methods | 4 | 0.61% |
▷ Private methods | 110 | 16.67% |
Functions | 143 | |
▷ Named functions | 56 | 39.16% |
▷ Anonymous functions | 87 | 60.84% |
Constants | 57 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 57 | 100.00% |
▷ Public constants | 57 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.70MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 135.59KB | 46.55KB | ▼ 65.67% |
assets/icon-256x256.png | 8.35KB | 4.79KB | ▼ 42.56% |
assets/icon-256x256-a.png | 9.59KB | 4.62KB | ▼ 51.81% |
assets/icon-128x128.png | 4.39KB | 2.69KB | ▼ 38.65% |
assets/banner-1544x500.png | 554.85KB | 165.84KB | ▼ 70.11% |