Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.68MB] [CPU: ▼50.36ms] Passed 4 tests
A check of server-side resources used by Ubecube 3D
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.15 | 9.71 ▼33.88 |
Dashboard /wp-admin | 2.32 ▼0.98 | 14.67 ▼38.88 |
Posts /wp-admin/edit.php | 2.33 ▼1.03 | 11.57 ▼41.69 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.56 | 12.00 ▼86.99 |
Media Library /wp-admin/upload.php | 2.32 ▼0.90 | 12.53 ▼22.37 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_ju3d |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Ubecube 3D
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 14.81 ▲0.06 | 3.63 ▲1.26 | 39.75 ▼6.37 |
Dashboard /wp-admin | 2,206 ▲15 | 5.88 ▼0.00 | 101.19 ▼3.22 | 39.31 ▼8.16 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▼0.02 | 39.32 ▲3.35 | 36.09 ▲1.67 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.14 ▲0.13 | 667.13 ▲69.29 | 53.46 ▼9.92 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.19 ▼0.03 | 96.93 ▲1.40 | 43.27 ▲1.12 |
Uninstaller [IO: ▲0.00MB] [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
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in ubecube_3d is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_ju3d
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Wp_Widget' not found in wp-content/plugins/ubecube-3d-widget/ubecube_3d.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Ubecube 3D.), #2 (Mouse over the cube.), #3 (Rotation.), #4 (Administrator's panel.), #5 (No 3D mode (IE 10).)
- Donate link: Invalid url: ""
ubecube-3d-widget/ubecube_3d.php 92% from 13 tests
The entry point to "Ubecube 3D" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ubecube-3d-widget.php" instead of "ubecube_3d.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin640 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 55 | 30 | 247 |
JavaScript | 2 | 132 | 67 | 193 |
PHP | 1 | 94 | 33 | 175 |
PO File | 1 | 5 | 5 | 25 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 3.00 |
▷ 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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 17.35KB | 9.32KB | ▼ 46.28% |
screenshot-5.png | 5.07KB | 2.55KB | ▼ 49.64% |
img/transparent.png | 0.90KB | 0.09KB | ▼ 89.72% |
screenshot-1.png | 4.54KB | 2.36KB | ▼ 48.10% |
img/buttons-60x316.png | 2.41KB | 0.79KB | ▼ 67.41% |