Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/3dhubs/main.php+69
Methods with the same name as their class will not be constructors in a future version of PHP; ThreeDHubsWidget has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼188.98ms] Passed 4 tests
Analyzing server-side resources used by 3DHubs
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼1.05 | 5.20 ▼24.21 |
Dashboard /wp-admin | 1.81 ▼1.25 | 9.68 ▼31.32 |
Posts /wp-admin/edit.php | 1.81 ▼1.30 | 5.29 ▼37.97 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.63 | 4.54 ▼654.83 |
Media Library /wp-admin/upload.php | 1.81 ▼1.19 | 4.79 ▼31.79 |
3DHubs /wp-admin/options-general.php?page=3DHubs | 1.81 | 5.22 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_threedhubswidget |
Browser metrics Passed 4 tests
A check of browser resources used by 3DHubs
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲114 | 15.93 ▲0.34 | 10.69 ▲2.34 | 52.21 ▲2.32 |
Dashboard /wp-admin | 2,975 ▲38 | 5.97 ▲0.02 | 165.55 ▲8.03 | 117.46 ▲8.02 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.02 | 69.79 ▲0.01 | 82.61 ▼10.35 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.69 ▲0.21 | 366.35 ▼18.13 | 108.29 ▼4.66 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.03 ▲0.01 | 143.91 ▼10.67 | 118.75 ▲12.22 |
3DHubs /wp-admin/options-general.php?page=3DHubs | 894 | 1.86 | 38.54 | 53.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/3dhubs/main.php+69
Methods with the same name as their class will not be constructors in a future version of PHP; ThreeDHubsWidget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 1 option
- widget_threedhubswidget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=3DHubs
- > Deprecated in wp-content/plugins/3dhubs/main.php+69
Methods with the same name as their class will not be constructors in a future version of PHP; ThreeDHubsWidget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=3DHubs
- > Deprecated in wp-content/plugins/3dhubs/main.php+133
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=3DHubs
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in ThreeDHubsWidget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=3DHubs
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=3DHubs
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=3DHubs
- > Error in wp-admin/includes/template.php+1720
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/3dhubs/templates/settings.php on line 6 and exactly 2 expected in wp-admin/includes/template.php:1720
Stack trace:
#0 wp-content/plugins/3dhubs/templates/settings.php(6): do_settings_fields()
#1 wp-content/plugins/3dhubs/settings.php(64): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(303): ThreeDHubsSettings->plugin_settings_page()
#3 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(470): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/3dhubs/main.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/3dhubs/templates/settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== 3dhubs ===
)
3dhubs/main.php 92% from 13 tests
The main PHP script in "3DHubs" version 0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("3dhubs.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin169 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 47 | 46 | 137 |
CSS | 1 | 2 | 0 | 32 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 2 | 11.11% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo-heart-white-gradient-30px.png | 1.72KB | 1.20KB | ▼ 30.03% |