Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/3d-presentation/impressjs-step.php+383
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.61MB] [CPU: ▼24.77ms] Passed 4 tests
A check of server-side resources used by 3D Presentation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 39.83 ▲0.76 |
Dashboard /wp-admin | 3.30 ▼0.00 | 32.89 ▼16.44 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 35.85 ▼19.47 |
Add New Post /wp-admin/post-new.php | 3.31 ▼2.58 | 39.02 ▼57.87 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 33.62 ▼5.31 |
Add New Step /wp-admin/post-new.php?post_type=impressjsstep | 3.29 | 35.37 |
3D Presentation /wp-admin/options-general.php?page=3d-presentation/impressjs-step.php | 3.24 | 29.12 |
3D Presentation /wp-admin/edit.php?post_type=impressjsstep | 3.54 | 50.96 |
Server storage [IO: ▲0.19MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
lpg_impressjs_options |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 3D Presentation
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.36 ▼0.65 | 1.73 ▼0.21 | 44.97 ▲5.38 |
Dashboard /wp-admin | 2,246 ▲58 | 4.97 ▲0.04 | 101.50 ▼3.25 | 86.24 ▲42.81 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.08 ▲0.08 | 36.02 ▼5.78 | 35.68 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,547 ▲26 | 17.58 ▼5.63 | 698.52 ▲1.73 | 63.95 ▲1.71 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.21 ▼0.07 | 101.09 ▼4.97 | 49.83 ▲5.38 |
Add New Step /wp-admin/post-new.php?post_type=impressjsstep | 2,374 | 7.90 | 172.70 | 141.64 |
3D Presentation /wp-admin/options-general.php?page=3d-presentation/impressjs-step.php | 994 | 1.76 | 24.85 | 36.71 |
3D Presentation /wp-admin/edit.php?post_type=impressjsstep | 2,944 | 2.21 | 38.07 | 39.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=impressjsstep
- > Notice in wp-content/plugins/3d-presentation/impressjs-step.php+306
Undefined index: impressjs_meta_box_nonce
- 9 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=impressjsstep
- > Notice in wp-content/plugins/3d-presentation/impressjs-step.php+238
Undefined index: std
- 9 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=impressjsstep
- > Notice in wp-content/plugins/3d-presentation/impressjs-step.php+238
Undefined index: validation
- > GET request to /wp-admin/options-general.php?page=3d-presentation/impressjs-step.php
- > Notice in wp-content/plugins/3d-presentation/impressjs-step.php+115
Undefined index: post_type
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
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/3d-presentation/impressjs-step.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/3d-presentation/impressjs-overview.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/3d-presentation/single-impressjsstep.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/3d-presentation/impressjs-presentation.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=impressjsstep
- > Network (severe)
wp-content/plugins/js/myvalidate.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=impressjsstep
- > Network (severe)
http://localhost/mz/index.php?impressjsoverview=true#/overviewinedit - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Requires at least: Version not formatted correctly
- Screenshots: Add images for these screenshots: #1 (Setting Page), #2 (Editing Step Page)
3d-presentation/impressjs-step.php 85% from 13 tests
The main PHP file in "3D Presentation" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 267 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("3d-presentation.php" instead of "impressjs-step.php")
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
Good job! No executable or dangerous file extensions detected2,688 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 271 | 354 | 1,435 |
PHP | 4 | 196 | 157 | 893 |
CSS | 2 | 128 | 225 | 360 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 26 | |
▷ Named functions | 26 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
impressjs-icon16.png | 0.52KB | 0.52KB | 0.19% |
screenshot-1.png | 18.61KB | 7.08KB | ▼ 61.98% |
screenshot-2.png | 33.88KB | 16.45KB | ▼ 51.44% |
impressjs-icon32.png | 1.04KB | 0.91KB | ▼ 12.64% |
apple-touch-icon.png | 2.47KB | 1.95KB | ▼ 21.30% |