Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.85ms] Passed 4 tests
Analyzing server-side resources used by SwiftXR (3D/AR/VR) Viewer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 45.49 ▲2.05 |
Dashboard /wp-admin | 3.32 ▼0.02 | 52.42 ▼11.27 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.67 ▼1.69 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 87.13 ▼18.17 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.61 ▼0.25 |
My Published Links /wp-admin/admin.php?page=swiftxr-app-dashboard | 3.28 | 38.32 |
Add New /wp-admin/admin.php?page=swiftxr-app-form | 3.31 | 33.99 |
Settings /wp-admin/admin.php?page=swiftxr-settings | 3.26 | 35.71 |
Guide /wp-admin/admin.php?page=swiftxr-tutorial | 3.28 | 30.60 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_swiftxr_shortcodes |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
swiftxr-product-append |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SwiftXR (3D/AR/VR) Viewer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 13.29 ▼1.00 | 1.80 ▲0.09 | 44.80 ▲5.36 |
Dashboard /wp-admin | 2,244 ▲56 | 4.88 ▼1.00 | 111.48 ▲12.86 | 45.03 ▲1.09 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.06 ▲0.06 | 36.62 ▼1.02 | 37.92 ▲1.59 |
Add New Post /wp-admin/post-new.php | 1,546 ▲10 | 23.22 ▲0.01 | 668.03 ▲18.50 | 55.86 ▲9.59 |
Media Library /wp-admin/upload.php | 1,426 ▲41 | 4.18 ▼0.08 | 94.99 ▼7.15 | 43.84 ▼0.16 |
My Published Links /wp-admin/admin.php?page=swiftxr-app-dashboard | 851 | 1.80 | 28.19 | 38.20 |
Add New /wp-admin/admin.php?page=swiftxr-app-form | 1,054 | 1.85 | 27.15 | 29.73 |
Settings /wp-admin/admin.php?page=swiftxr-settings | 886 | 1.69 | 24.97 | 35.63 |
Guide /wp-admin/admin.php?page=swiftxr-tutorial | 948 | 2.06 | 24.03 | 41.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- swiftxr-product-append
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% 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 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/swiftxr-3darvr-viewer/admin/index.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/swiftxr-3darvr-viewer/admin/views/tutorial.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/swiftxr-3darvr-viewer/admin/views/settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/swiftxr-3darvr-viewer/admin/views/dashboard.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/swiftxr-3darvr-viewer/admin/views/form.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=swiftxr-app-form
- > Other (warning) in unknown
/wp-admin/admin.php?page=swiftxr-app-form 319 Unrecognized feature: 'vr'.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Contributors: Plugin contributors not specified
swiftxr-3darvr-viewer/swiftxr-viewer.php 92% from 13 tests
The principal PHP file in "SwiftXR (3D/AR/VR) Viewer" v. 1.0.5 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("swiftxr-3darvr-viewer.php" instead of "swiftxr-viewer.php")
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
There were no executable files found in this plugin1,143 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 406 | 110 | 690 |
CSS | 1 | 66 | 13 | 349 |
JavaScript | 1 | 55 | 36 | 104 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/emptystate-files.png | 6.66KB | 4.21KB | ▼ 36.83% |
admin/assets/home-trophy.png | 20.16KB | 7.24KB | ▼ 64.07% |