Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.75ms] Passed 4 tests
A check of server-side resources used by Xtrad Viewer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.54 ▼4.80 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.35 ▲2.62 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.09 ▼4.36 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.96 ▼13.09 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.39 ▼0.76 |
Viewer /wp-admin/admin.php?page=xtrad-viewer-menu | 3.24 | 32.87 |
3D Viewer /wp-admin/admin.php?page=xtrad-top-menu | 3.23 | 31.98 |
Server storage [IO: ▲13.83MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 202 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_xdscenes |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
xtrad_viewer_lib_version |
xtrad_viewer_db_version |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Xtrad Viewer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲145 | 15.53 ▲1.15 | 54.58 ▲52.76 | 37.32 ▼11.82 |
Dashboard /wp-admin | 2,239 ▲51 | 4.90 ▼0.96 | 96.79 ▼6.49 | 39.97 ▼2.29 |
Posts /wp-admin/edit.php | 2,116 ▲30 | 2.05 ▼0.00 | 35.45 ▼3.72 | 32.77 ▼2.12 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.14 ▼0.35 | 633.97 ▼42.81 | 56.50 ▼0.88 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.30 ▲0.10 | 94.12 ▼14.99 | 42.09 ▼3.84 |
Viewer /wp-admin/admin.php?page=xtrad-viewer-menu | 2,586 | 6.56 | 236.01 | 64.09 |
3D Viewer /wp-admin/admin.php?page=xtrad-top-menu | 1,715 | 1.80 | 25.86 | 74.66 |
Uninstaller [IO: ▲6.57MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_xdscenes
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- xtrad_viewer_lib_version
- widget_recent-posts
- widget_recent-comments
- xtrad_viewer_db_version
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=xtrad-viewer-menu
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/xtrad-viewer/admin/partials/xtrad-viewer-admin-display.php+474
scandir(wp-content/uploads/xtrad-library/360/): failed to open dir: No such file or directory
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=xtrad-viewer-menu
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/xtrad-viewer/admin/partials/xtrad-viewer-admin-display.php+523
scandir(): (errno 2): No such file or directory
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=xtrad-viewer-menu
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/xtrad-viewer/admin/partials/xtrad-viewer-admin-display.php+523
array_diff(): Expected parameter 1 to be an array, bool given
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=xtrad-viewer-menu
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/xtrad-viewer/admin/partials/xtrad-viewer-admin-display.php+525
Invalid argument supplied for foreach()
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=xtrad-viewer-menu
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/xtrad-viewer/admin/partials/xtrad-viewer-admin-display.php+492
scandir(wp-content/uploads/xtrad-library/videos/): failed to open dir: No such file or directory
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=xtrad-viewer-menu
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/xtrad-viewer/admin/partials/xtrad-viewer-admin-display.php+523
scandir(wp-content/uploads/xtrad-library/svg/): failed to open dir: No such file or directory
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/xtrad-viewer/public/partials/huffman.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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
9 plugin tags: mtl, obj, webgl, 3d scene, slider...
xtrad-viewer/xtrad-viewer.php Passed 13 tests
The main PHP script in "Xtrad Viewer" version 1.3.1 is automatically included on every request by WordPress
28 characters long description:
Edits and Displays 3D Scenes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,432 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 501 | 917 | 1,967 |
CSS | 7 | 113 | 36 | 881 |
JavaScript | 15 | 468 | 112 | 566 |
JSON | 18 | 0 | 0 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 63 | 85.14% |
▷ Protected methods | 2 | 2.70% |
▷ Private methods | 9 | 12.16% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
40 PNG files occupy 1.34MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Quick_Start_Guide/Save_Hello_World.png | 8.24KB | 3.77KB | ▼ 54.31% |
images/ball.png | 3.89KB | 3.10KB | ▼ 20.21% |
images/Quick_Start_Guide/XTRAD_-_Popup.png | 25.63KB | 11.29KB | ▼ 55.95% |
textures/sprites/snowflakes/snowflake5.png | 0.87KB | 0.89KB | 0.00% |
images/Quick_Start_Guide/Menu_Templates.png | 3.88KB | 2.28KB | ▼ 41.35% |