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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.77ms] Passed 4 tests
Server-side resources used by Three D Cube
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.96 ▲2.74 |
Dashboard /wp-admin | 3.32 ▼0.02 | 48.54 ▼15.84 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.08 ▼0.27 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 94.29 ▼13.70 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 43.69 ▲5.92 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mxtdc_table_slug |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Three D Cube
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 14.36 ▲0.08 | 17.95 ▲16.15 | 42.99 ▲0.26 |
Dashboard /wp-admin | 2,222 ▲42 | 5.61 ▼0.09 | 87.14 ▼2.05 | 80.28 ▲38.52 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 2.00 ▲0.04 | 38.07 ▼2.22 | 32.97 ▼4.63 |
Add New Post /wp-admin/post-new.php | 1,701 ▲175 | 22.44 ▼0.66 | 745.23 ▲70.75 | 57.08 ▲0.95 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.14 ▼0.07 | 102.40 ▼2.80 | 63.23 ▲14.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/three-d-cube/includes/admin/views/main-page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: 3d, images, advert
three-d-cube/three-d-cube.php Passed 13 tests
The main file in "Three D Cube" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
17 characters long description:
Brief description
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin5,336 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 0 | 15 | 2,269 |
JavaScript | 4 | 519 | 94 | 1,554 |
PHP | 25 | 596 | 391 | 795 |
SVG | 1 | 0 | 0 | 685 |
PO File | 1 | 8 | 8 | 33 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 2.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 1 | 5.26% |
Methods | 58 | |
▷ Static methods | 22 | 37.93% |
▷ Public methods | 58 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up 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 |
assets/img/icon.png | 1.83KB | 1.20KB | ▼ 34.35% |