Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.29MB] [CPU: ▼9.57ms] Passed 4 tests
This is a short check of server-side resources used by WP Virtual Tour
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▼0.60 | 28.73 ▼18.27 |
Dashboard /wp-admin | 3.32 ▲0.02 | 67.17 ▲14.21 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 53.66 ▲2.75 |
Add New Post /wp-admin/post-new.php | 5.31 ▼0.57 | 75.85 ▼21.84 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.53 ▼0.90 |
Server storage [IO: ▲3.60MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Virtual Tour
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.56 ▼0.84 | 8.81 ▲6.73 | 43.53 ▼3.53 |
Dashboard /wp-admin | 2,221 ▲29 | 5.80 ▲0.82 | 96.47 ▼26.45 | 39.11 ▼7.34 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.01 ▲0.02 | 40.09 ▲3.54 | 35.03 ▼5.60 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.21 ▲0.31 | 605.72 ▼74.34 | 53.35 ▼0.44 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.21 ▼0.06 | 97.05 ▼5.87 | 43.43 ▼5.93 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Admin interface), #2 (Block editor), #3 (Frontend view)
- Donate link: Invalid URI ("")
wp-virtualtour/wp-virtualtour.php 92% from 13 tests
"WP Virtual Tour" version 1.0.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected36,228 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 20,786 |
CSS | 3 | 1,233 | 34 | 12,178 |
Sass | 2 | 350 | 148 | 1,279 |
Vuejs Component | 6 | 68 | 31 | 1,011 |
PHP | 12 | 160 | 515 | 523 |
JavaScript | 9 | 35 | 9 | 451 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 27 | 69.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 30.77% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
5 PNG files occupy 1.27MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/vue-app/static/img/pannellum-placeholder.png | 17.75KB | 20.19KB | 0.00% |
admin/vue-app/static/img/scene-placeholder.png | 6.80KB | 1.87KB | ▼ 72.44% |
assets/screenshot-1.png | 456.81KB | 178.80KB | ▼ 60.86% |
assets/screenshot-2.png | 420.51KB | 156.95KB | ▼ 62.68% |
assets/screenshot-3.png | 397.67KB | 151.44KB | ▼ 61.92% |