Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.98ms] Passed 4 tests
Server-side resources used by VR Views
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.75 ▼0.56 |
Dashboard /wp-admin | 3.32 ▲0.01 | 42.14 ▼4.17 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.33 ▼3.87 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.71 ▼19.32 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.82 ▲2.08 |
Server storage [IO: ▲7.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for VR Views
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲152 | 13.70 ▼0.68 | 5.31 ▲3.66 | 46.46 ▲6.86 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.97 | 106.93 ▲0.20 | 35.77 ▼2.53 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.05 | 39.77 ▲2.38 | 36.31 ▲2.21 |
Add New Post /wp-admin/post-new.php | 1,518 ▼15 | 17.72 ▼5.43 | 659.06 ▼8.41 | 58.03 ▲0.79 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.31 ▲0.12 | 94.43 ▼5.76 | 42.75 ▼2.72 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
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
Everything seems fine, however this is by no means 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 items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/vr-views/admin/partials/vr-views-admin-display.php
- > /wp-content/plugins/vr-views/public/partials/vr-views-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: 360, google cardboard, vr, virtual reality, video...
vr-views/vr-views.php Passed 13 tests
This is the main PHP file of "VR Views" version 1.5.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Display Google's VR Views in a browser a compatible VR devices
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
There were no executable files found in this plugin23,772 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 16,381 | 4,511 | 23,449 |
PHP | 12 | 123 | 528 | 185 |
CSS | 3 | 7 | 8 | 88 |
HTML | 1 | 2 | 0 | 24 |
JSON | 1 | 0 | 0 | 20 |
SVG | 2 | 0 | 0 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 4.51MB with 2.71MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 1,412.63KB | 634.44KB | ▼ 55.09% |
assets/banner-772x250.png | 288.95KB | 87.63KB | ▼ 69.67% |
assets/banner-1544x500.png | 1,085.63KB | 326.49KB | ▼ 69.93% |
assets/screenshot-2.png | 1,827.80KB | 986.49KB | ▼ 46.03% |