Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▼5.48ms] Passed 4 tests
This is a short check of server-side resources used by rooom 3D Product Viewer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 44.05 ▼0.97 |
Dashboard /wp-admin | 3.67 ▲0.36 | 51.04 ▼4.78 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 47.33 ▼1.97 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 87.69 ▼14.21 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 40.75 ▲3.89 |
3D Product Viewer /wp-admin/themes.php?page=rooom-viewer | 3.57 | 36.95 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by rooom 3D Product Viewer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲30 | 14.41 ▲0.06 | 2.27 ▲0.28 | 46.29 ▲3.77 |
Dashboard /wp-admin | 2,215 ▲38 | 5.74 ▲0.13 | 87.58 ▼5.19 | 42.85 ▲3.28 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.30 ▲0.32 | 38.69 ▼0.58 | 33.75 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 22.20 ▼0.94 | 667.55 ▼26.62 | 39.95 ▼12.96 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.53 ▲0.35 | 109.12 ▲3.50 | 46.02 ▼4.01 |
3D Product Viewer /wp-admin/themes.php?page=rooom-viewer | 915 | 1.91 | 26.10 | 27.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (Global settings for all product viewers in the shop)
- Tags: There are too many tags (12 tag instead of maximum 10)
rooom-3d-product-viewer/rooom-woocommerce-plugin.php 92% from 13 tests
The primary PHP file in "rooom 3D Product Viewer" version 1.1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rooom-3d-product-viewer.php" instead of "rooom-woocommerce-plugin.php")
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
Success! There were no dangerous files found in this plugin1,982 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 289 | 484 | 1,450 |
PO File | 2 | 170 | 194 | 457 |
JavaScript | 3 | 23 | 2 | 66 |
CSS | 1 | 0 | 1 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 5 | 20.00% |
▷ Public methods | 22 | 88.00% |
▷ Protected methods | 1 | 4.00% |
▷ Private methods | 2 | 8.00% |
Functions | 30 | |
▷ Named functions | 29 | 96.67% |
▷ Anonymous functions | 1 | 3.33% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/pixel.png | 1.05KB | 0.10KB | ▼ 90.24% |
assets/rooom-icon-3D-scan.png | 20.67KB | 9.98KB | ▼ 51.71% |
assets/rooom_logo.png | 11.87KB | 3.24KB | ▼ 72.71% |