Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼298.66ms] Passed 4 tests
An overview of server-side resources used by 3DVieweronline
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.23 | 54.36 ▲4.90 |
Dashboard /wp-admin | 3.58 ▲0.17 | 33.87 ▲1.08 |
Posts /wp-admin/edit.php | 3.80 ▲0.16 | 37.44 ▲1.41 |
Add New Post /wp-admin/post-new.php | 7.04 ▲0.07 | 90.53 ▼1,197.85 |
Media Library /wp-admin/upload.php | 3.45 ▲0.16 | 24.54 ▲0.72 |
Server storage [IO: ▲1.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 1 new option
New WordPress options |
---|
settings-threed-iframe |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 3DVieweronline
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,925 ▲181 | 16.29 ▲0.62 | 14.42 ▲8.00 | 2.14 ▼0.22 |
Dashboard /wp-admin | 2,924 ▲63 | 6.09 ▼0.03 | 118.90 ▼16.20 | 176.79 ▲17.24 |
Posts /wp-admin/edit.php | 2,719 ▲28 | 3.14 ▼0.10 | 64.55 ▼0.44 | 143.78 ▲1.01 |
Add New Post /wp-admin/post-new.php | 1,694 ▲33 | 16.73 ▲0.73 | 390.55 ▼28.44 | 183.75 ▲19.26 |
Media Library /wp-admin/upload.php | 1,728 ▲30 | 5.55 ▲0.02 | 127.43 ▼12.69 | 207.00 ▲20.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 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 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/3dvieweronline-wp/admin/partials/threedvieweronline-iframe-admin-display.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: 3d product viewer, 3dvieweronline, 3d model viewer, 3d viewer, 3d e-commerce...
3dvieweronline-wp/threedvieweronline-iframe.php 77% from 13 tests
Analyzing the main PHP file in "3DVieweronline" version 2.0.0
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 149 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("3dvieweronline-wp.php" instead of "threedvieweronline-iframe.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected15,627 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 7,134 |
JavaScript | 10 | 1,218 | 671 | 4,113 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 6 | 141 | 27 | 918 |
PHP | 12 | 263 | 590 | 777 |
Sass | 1 | 1 | 0 | 14 |
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.32 |
Average class complexity | 11.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 3 | 5.00% |
▷ Public methods | 53 | 88.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 11.67% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/custom-icon.png | 1.53KB | 0.29KB | ▼ 80.80% |
assets/images/logo.png | 0.46KB | 0.41KB | ▼ 12.24% |
assets/images/icon.png | 1.03KB | 0.56KB | ▼ 46.07% |