Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.36MB] [CPU: ▼6.47ms] Passed 4 tests
Server-side resources used by VRPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 42.11 ▼2.07 |
Dashboard /wp-admin | 3.65 ▲0.34 | 51.89 ▼15.64 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 54.88 ▲3.54 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 100.83 ▼8.18 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 40.25 ▲0.01 |
Documentation /wp-admin/edit.php?post_type=ubcvrpress&page=ubc_vrpress_documentations | 3.54 | 34.97 |
Add New Tour /wp-admin/post-new.php?post_type=ubcvrpress | 3.64 | 55.23 |
Settings /wp-admin/edit.php?post_type=ubcvrpress&page=ubc_vrpress_settings | 3.52 | 35.82 |
All Tours /wp-admin/edit.php?post_type=ubcvrpress | 3.62 | 43.10 |
Server storage [IO: ▲12.40MB] [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, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
vrpress_permalinks_flushed |
Browser metrics Passed 4 tests
An overview of browser requirements for VRPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲72 | 14.28 ▼0.11 | 1.66 ▼0.20 | 41.22 ▲0.15 |
Dashboard /wp-admin | 2,237 ▲60 | 5.68 ▲0.06 | 89.72 ▼2.76 | 42.60 ▲1.20 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.05 ▲0.04 | 41.43 ▲4.92 | 37.34 ▼3.44 |
Add New Post /wp-admin/post-new.php | 6,230 ▲4,699 | 19.02 ▼4.36 | 884.15 ▲190.00 | 61.91 ▲8.15 |
Media Library /wp-admin/upload.php | 1,439 ▲42 | 4.25 ▲0.01 | 96.18 ▼19.77 | 46.22 ▼1.73 |
Documentation /wp-admin/edit.php?post_type=ubcvrpress&page=ubc_vrpress_documentations | 883 | 2.01 | 23.89 | 27.13 |
Add New Tour /wp-admin/post-new.php?post_type=ubcvrpress | 1,874 | 6.30 | 114.60 | 44.56 |
Settings /wp-admin/edit.php?post_type=ubcvrpress&page=ubc_vrpress_settings | 828 | 2.02 | 24.61 | 26.51 |
All Tours /wp-admin/edit.php?post_type=ubcvrpress | 1,100 | 1.93 | 31.15 | 32.52 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- vrpress_permalinks_flushed
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/edit.php?post_type=ubcvrpress&page=ubc_vrpress_settings
- > Notice in wp-content/plugins/vrpress/includes/class-vrpress.php+317
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/vrpress/includes/template-single.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=ubcvrpress
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key=&libraries=places 235:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
There were not plugin tags detected
vrpress/vrpress.php Passed 13 tests
"VRPress" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
78 characters long description:
Create 360 virtual tours using images of your own or Google Streetview images.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,443 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 177 | 337 | 1,059 |
JavaScript | 6 | 146 | 284 | 319 |
JSON | 1 | 0 | 0 | 46 |
SVG | 14 | 0 | 0 | 14 |
CSS | 5 | 1 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 8 | 22.22% |
▷ Public methods | 30 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.67% |
Functions | 12 | |
▷ Named functions | 3 | 25.00% |
▷ Anonymous functions | 9 | 75.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.43MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/src/image/map-marker-solid-default.png | 0.53KB | 0.66KB | 0.00% |
assets/src/image/documentations/vr-type.png | 120.58KB | 40.51KB | ▼ 66.41% |
assets/src/image/map-marker-solid.png | 0.51KB | 0.66KB | 0.00% |
assets/src/image/documentations/shortcode-copy.png | 77.42KB | 24.07KB | ▼ 68.91% |
assets/src/image/documentations/gutenberg-block.png | 20.82KB | 4.90KB | ▼ 76.49% |