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
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.05ms] Passed 4 tests
Server-side resources used by TSP Demos Installer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.27 ▼4.03 |
Dashboard /wp-admin | 3.41 ▲0.07 | 48.10 ▼8.73 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 49.81 ▲1.43 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 91.31 ▼4.88 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 37.90 ▲1.82 |
Server storage [IO: ▲2.96MB] [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: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
__tsp_demos_setup_do_redirect |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by TSP Demos Installer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.59 ▼0.80 | 2.00 ▲0.39 | 49.11 ▲7.80 |
Dashboard /wp-admin | 2,223 ▲32 | 5.81 ▼0.08 | 97.29 ▼4.63 | 41.28 ▼3.25 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 2.04 ▲0.03 | 41.58 ▲0.56 | 38.22 ▲0.64 |
Add New Post /wp-admin/post-new.php | 1,526 ▲12 | 17.70 ▲0.21 | 589.47 ▼68.91 | 51.78 ▲1.31 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.22 ▲0.02 | 103.34 ▲8.54 | 46.88 ▲2.38 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- __tsp_demos_setup_do_redirect
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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 fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/web-theme-space-demos/web-theme-space-demos.php
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 87% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Donate link: Please fix this invalid url: "wpbusinessthemes.com"
- Screenshots: Please add an image for screenshot #1 (TSP Demos Setup)
web-theme-space-demos/web-theme-space-demos.php 85% from 13 tests
The main PHP script in "TSP Demos Installer" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin555 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 165 | 501 | 470 |
CSS | 1 | 6 | 1 | 56 |
JavaScript | 1 | 5 | 5 | 23 |
JSON | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 6 | 18.18% |
▷ Public methods | 29 | 87.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.12% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 2.45MB with 2.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/demo-data/common/business/screenshot.png | 1,720.69KB | 308.20KB | ▼ 82.09% |
includes/demo-data/common/shop/screenshot.png | 785.33KB | 114.18KB | ▼ 85.46% |