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.07MB] [CPU: ▼4.65ms] Passed 4 tests
Analyzing server-side resources used by STL Viewer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.14 ▼5.69 |
Dashboard /wp-admin | 3.39 ▲0.09 | 44.47 ▼5.38 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 50.32 ▲0.31 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 91.34 ▼7.85 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 35.11 ▲2.54 |
STL Viewer /wp-admin/options-general.php?page=stlviewer | 3.25 | 28.12 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 32 new options
New WordPress options |
---|
widget_theysaidso_widget |
stlviewer_fog_near |
stlviewer_height |
stlviewer_informations |
stlviewer_rotation_y |
widget_recent-posts |
theysaidso_admin_options |
stlviewer_loading_text |
stlviewer_directional_light_intensity |
stlviewer_webgl_test_success |
... |
Browser metrics Passed 4 tests
STL Viewer: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.30 ▼1.09 | 1.68 ▼0.40 | 42.81 ▼3.17 |
Dashboard /wp-admin | 2,207 ▲22 | 5.83 ▼0.02 | 118.97 ▲1.98 | 46.34 ▲0.72 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.04 ▲0.02 | 39.33 ▲2.30 | 35.74 ▼0.57 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 23.17 ▲0.08 | 664.55 ▼0.62 | 60.36 ▲2.14 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▼0.02 | 97.60 ▼2.76 | 43.08 ▼1.73 |
STL Viewer /wp-admin/options-general.php?page=stlviewer | 879 | 2.18 | 27.76 | 46.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 32 options
- widget_theysaidso_widget
- stlviewer_floor_repeat
- theysaidso_admin_options
- widget_recent-comments
- stlviewer_floor_scale
- stlviewer_delete_settings
- stlviewer_webgl_error
- stlviewer_download_link
- stlviewer_width
- stlviewer_rotation_x
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=stlviewer
- > Notice in wp-content/plugins/stl-viewer/settings.php+168
Undefined variable: checked
SRP 0% 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× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/stl-viewer/help.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stl-viewer/settings.php:93
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #1 in stl-viewer/assets to your readme.txt
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== stl-viewer ===
)
stl-viewer/stl.php 92% from 13 tests
The principal PHP file in "STL Viewer" v. 1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("stl-viewer.php" instead of "stl.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,411 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 835 | 157 | 2,091 |
PHP | 3 | 83 | 47 | 320 |
PHP code Passed 2 tests
This is a very shot 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.22 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 27 | 87.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.90% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin