Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.97ms] Passed 4 tests
Server-side resources used by Marmoset Viewer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.49 ▼3.89 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.56 ▲2.16 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.80 ▼1.93 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 86.60 ▼12.23 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 40.98 ▲5.26 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Marmoset Viewer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲115 | 13.25 ▼1.04 | 4.89 ▲3.30 | 43.63 ▼2.80 |
Dashboard /wp-admin | 2,236 ▲54 | 4.91 ▼0.97 | 97.37 ▼8.03 | 66.67 ▲22.53 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 1.99 ▼0.06 | 38.24 ▼0.55 | 35.30 ▲4.62 |
Add New Post /wp-admin/post-new.php | 1,698 ▲179 | 21.90 ▼1.19 | 774.53 ▲110.87 | 59.34 ▼6.24 |
Media Library /wp-admin/upload.php | 1,412 ▲30 | 4.27 ▼0.09 | 109.30 ▲10.22 | 75.38 ▲30.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/marmoset-viewer/mviewer.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Screenshots: Add a description for screenshot #5 in marmoset-viewer/assets to your readme.txt
marmoset-viewer/marmoset-viewer.php Passed 13 tests
The main PHP file in "Marmoset Viewer" ver. 1.9.3 adds more information about the plugin and also serves as the entry point for this plugin
127 characters long description:
Allows you to embed Marmoset Toolbag 2 aswell as Toolbag 3 mview files, allowing people to view your models in all their glory.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected801 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 34 | 321 |
CSS | 2 | 7 | 0 | 234 |
SVG | 2 | 0 | 2 | 122 |
HTML | 1 | 9 | 0 | 77 |
JavaScript | 2 | 19 | 11 | 47 |
PHP code Passed 2 tests
This is a very shot review of 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.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/revolutionart_logo.png | 133.84KB | 50.82KB | ▼ 62.03% |