Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.28ms] Passed 4 tests
A check of server-side resources used by Cube 3D
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 46.62 ▲5.23 |
Dashboard /wp-admin | 3.33 ▲0.03 | 52.47 ▲7.53 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 50.37 ▼6.36 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.40 ▼8.00 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.44 ▲0.02 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cube_3d |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cube 3D
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲178 | 14.43 ▼0.10 | 1.63 ▼0.00 | 44.96 ▲4.48 |
Dashboard /wp-admin | 2,330 ▲153 | 6.14 ▲0.50 | 110.68 ▲21.96 | 80.92 ▲37.10 |
Posts /wp-admin/edit.php | 2,273 ▲170 | 3.48 ▲1.49 | 46.33 ▲6.68 | 69.91 ▲30.75 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 22.99 ▼0.81 | 586.47 ▼89.10 | 97.38 ▲47.58 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.09 ▼0.12 | 79.07 ▼33.59 | 78.44 ▲30.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/cube-3d/views/cube-3d.tpl.php
- 28× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: atts in wp-content/plugins/cube-3d/views/cube-3d.tpl.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cube-3d/cube-3d.php:25
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cube-3d/views/cube-3d.tpl.php on line 12
- > PHP Notice
Undefined variable: cube in wp-content/plugins/cube-3d/views/cube-3d.tpl.php on line 24
- > PHP Notice
Trying to get property 'width' of non-object in wp-content/plugins/cube-3d/views/cube-3d.tpl.php on line 17
- > PHP Notice
Trying to get property 'width' of non-object in wp-content/plugins/cube-3d/views/cube-3d.tpl.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/cube-3d/views/cubes_3d_list.php:9
- > PHP Notice
Trying to get property 'faces_image' of non-object in wp-content/plugins/cube-3d/views/cube-3d.tpl.php on line 25
- > PHP Notice
Undefined variable: cube in wp-content/plugins/cube-3d/views/cube-3d.tpl.php on line 23
- > PHP Notice
Trying to get property 'faces_color' of non-object in wp-content/plugins/cube-3d/views/cube-3d.tpl.php on line 25
- > PHP Notice
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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== cube-3d ===
)
cube-3d/cube-3d.php 85% from 13 tests
The entry point to "Cube 3D" version 1.11 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Domain Path: The domain path must begin with a forward slash character ("/")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected333 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 92 | 27 | 182 |
CSS | 2 | 17 | 1 | 151 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.70KB | 0.75KB | 0.00% |
images/pro.png | 46.13KB | 9.57KB | ▼ 79.25% |
images/save.png | 0.54KB | 0.39KB | ▼ 28.11% |
images/remove.png | 1.27KB | 1.20KB | ▼ 5.76% |
images/fb.png | 1.59KB | 1.00KB | ▼ 37.42% |