Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.67MB] [CPU: ▼49.28ms] Passed 4 tests
A check of server-side resources used by Tsu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.32 ▼1.14 | 9.65 ▼36.86 |
Dashboard /wp-admin | 2.34 ▼0.97 | 12.72 ▼41.14 |
Posts /wp-admin/edit.php | 2.34 ▼1.02 | 13.83 ▼33.61 |
Add New Post /wp-admin/post-new.php | 2.34 ▼3.55 | 12.67 ▼85.52 |
Media Library /wp-admin/upload.php | 2.34 ▼0.89 | 11.72 ▼25.82 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_tsu |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Tsu: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲46 | 13.17 ▼1.23 | 1.90 ▼0.51 | 40.56 ▼10.51 |
Dashboard /wp-admin | 2,203 ▲15 | 5.79 ▲0.85 | 95.51 ▼16.99 | 40.16 ▼8.56 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.18 ▲0.15 | 39.30 ▲3.78 | 33.49 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.46 ▲0.20 | 687.66 ▲25.65 | 48.52 ▼3.98 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.21 ▲0.02 | 94.81 ▼3.07 | 42.12 ▼4.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Tsu_Widget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_tsu
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
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
Good news, no errors were detected
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
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/tsu/tsu.php:25
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tsu/inc/class-tsu-widget.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: widget, invite, social, share, network...
tsu/tsu.php Passed 13 tests
This is the main PHP file of "Tsu" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Tsu widget to share your profile / invitation with your readers.
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
No dangerous file extensions were detected354 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 69 | 261 | 205 |
PO File | 3 | 48 | 60 | 149 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 13 | 65.00% |
▷ Public methods | 15 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 25.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.10MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tsu-logo-96x96.png | 19.43KB | 3.68KB | ▼ 81.07% |
images/tsu-logo-16x16.png | 15.21KB | 0.90KB | ▼ 94.06% |
images/tsu-logo-32x32.png | 16.03KB | 1.56KB | ▼ 90.26% |
images/tsu-logo-64x64.png | 17.70KB | 2.60KB | ▼ 85.30% |
images/tsu-logo-128x128.png | 21.46KB | 4.94KB | ▼ 76.98% |