Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.24ms] Passed 4 tests
Analyzing server-side resources used by GLTF Media Type
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 38.35 ▲1.31 |
Dashboard /wp-admin | 3.41 ▲0.11 | 43.09 ▼5.75 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 46.14 ▼0.50 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 91.08 ▼6.81 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.65 ▲0.09 |
Add New /wp-admin/post-new.php?post_type=gltf_scene | 6.06 | 77.29 |
Scenes /wp-admin/edit.php?post_type=gltf_scene | 3.38 | 34.51 |
Server storage [IO: ▲5.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 82 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by GLTF Media Type
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.69 ▲0.08 | 1.86 ▲0.33 | 38.04 ▼3.22 |
Dashboard /wp-admin | 2,229 ▲48 | 5.56 ▼0.12 | 84.94 ▼19.71 | 37.62 ▼5.48 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.94 ▼0.04 | 39.31 ▲3.90 | 34.15 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 22.84 ▼0.25 | 676.03 ▲16.88 | 64.07 ▲4.52 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.19 ▲0.06 | 93.03 ▼13.91 | 46.19 ▼0.45 |
Add New /wp-admin/post-new.php?post_type=gltf_scene | 6,237 | 23.19 | 894.50 | 31.41 |
Scenes /wp-admin/edit.php?post_type=gltf_scene | 1,104 | 1.97 | 33.02 | 27.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/gltf-media-type/trunk/public/templates/single-gltf_scene-notheme.php
- > /wp-content/plugins/gltf-media-type/public/templates/single-gltf_scene-notheme.php
- > /wp-content/plugins/gltf-media-type/public/partials/gltf-public-display.php
- > /wp-content/plugins/gltf-media-type/trunk/admin/partials/gltf-admin-display.php
- > /wp-content/plugins/gltf-media-type/trunk/public/partials/gltf-public-display.php
- > /wp-content/plugins/gltf-media-type/admin/partials/gltf-admin-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/gltf-media-type/trunk/public/templates/single-gltf_scene.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/gltf-media-type/public/templates/single-gltf_scene.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== gltf-media-type ===
)
gltf-media-type/gltf.php 85% from 13 tests
The primary PHP file in "GLTF Media Type" version 1.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("gltf-media-type.php" instead of "gltf.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 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected107,531 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 18 | 77,110 | 14,659 | 107,155 |
PHP | 15 | 152 | 544 | 347 |
JSON | 1 | 0 | 0 | 28 |
CSS | 2 | 1 | 8 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 66 | |
▷ Static methods | 4 | 6.06% |
▷ Public methods | 54 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 18.18% |
Functions | 10 | |
▷ Named functions | 8 | 80.00% |
▷ Anonymous functions | 2 | 20.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/admin/images/model-icon.png | 8.00KB | 2.92KB | ▼ 63.56% |
admin/images/model-icon.png | 8.00KB | 2.92KB | ▼ 63.56% |