Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.82ms] Passed 4 tests
This is a short check of server-side resources used by Threepress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.09 ▲0.23 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.87 ▲0.99 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.64 ▲6.37 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.33 ▼10.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 37.13 ▲2.49 |
Server storage [IO: ▲33.00MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- Total filesystem usage should be limited to 25MB (currently using 33.00MB)
Filesystem: 223 new files
Database: 1 new table, 6 new options
New tables |
---|
threepress_shortcodes |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Threepress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,083 ▲312 | 17.95 ▲3.60 | 11.93 ▲9.88 | 42.98 ▼0.74 |
Dashboard /wp-admin | 2,372 ▲184 | 7.86 ▲3.02 | 127.05 ▲14.31 | 38.52 ▼2.02 |
Posts /wp-admin/edit.php | 2,287 ▲195 | 4.50 ▲2.48 | 60.79 ▲22.36 | 32.65 ▼3.45 |
Add New Post /wp-admin/post-new.php | 6,467 ▲4,948 | 24.57 ▲1.39 | 871.42 ▲210.00 | 39.00 ▼20.53 |
Media Library /wp-admin/upload.php | 1,463 ▲72 | 5.76 ▲1.55 | 100.78 ▼3.81 | 45.99 ▲1.66 |
Uninstaller [IO: ▲0.39MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie tables were found after uninstall: 1 table
- threepress_shortcodes
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
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)
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/threepress/inc/admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: multiplayer, gltf, threejs, chat, 3d model
threepress/threepress.php Passed 13 tests
Analyzing the main PHP file in "Threepress" version 1.6.2
50 characters long description:
Generate 3D gallery shortcodes powered by three.js
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin44,111 lines of code in 89 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 81 | 28,759 | 4,933 | 42,513 |
CSS | 4 | 161 | 31 | 1,096 |
PHP | 3 | 226 | 69 | 484 |
Markdown | 1 | 13 | 0 | 18 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 1 | 100.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 22 | 100.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
19 PNG files occupy 1.55MB with 1.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-menu.png | 28.54KB | 10.57KB | ▼ 62.97% |
assets/env-maps/pisaRGBM16/ny.png | 156.51KB | 13.97KB | ▼ 91.07% |
assets/env-maps/pisa/nz.png | 83.03KB | 37.59KB | ▼ 54.73% |
assets/sun.png | 42.27KB | 13.32KB | ▼ 68.50% |
assets/env-maps/pisaRGBM16/px.png | 145.81KB | 23.31KB | ▼ 84.01% |