Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.67MB] [CPU: ▼33.04ms] Passed 4 tests
Server-side resources used by WP W3D plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 42.32 ▲6.41 |
Dashboard /wp-admin | 3.28 ▼0.03 | 20.02 ▼27.31 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 22.65 ▼23.14 |
Add New Post /wp-admin/post-new.php | 3.28 ▼2.62 | 21.89 ▼69.29 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 21.86 ▼12.40 |
UI Elements /wp-admin/admin.php?page=wp-w3d-ui | 3.28 | 20.54 |
Settings /wp-admin/admin.php?page=wp-w3d-settings | 3.28 | 23.96 |
All Sliders /wp-admin/edit.php?post_type=w3dslider | 3.28 | 19.48 |
Server storage [IO: ▲4.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 147 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP W3D plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲213 | 14.63 ▲0.28 | 1.77 ▲0.16 | 40.92 ▼2.53 |
Dashboard /wp-admin | 2,367 ▲187 | 6.11 ▲0.44 | 113.53 ▲22.94 | 40.19 ▼4.87 |
Posts /wp-admin/edit.php | 2,302 ▲202 | 3.27 ▲1.28 | 54.28 ▲17.32 | 32.79 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,748 ▲222 | 22.57 ▼0.53 | 625.20 ▼62.79 | 36.24 ▼14.90 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.17 ▲0.00 | 93.03 ▼20.24 | 47.55 ▼2.04 |
UI Elements /wp-admin/admin.php?page=wp-w3d-ui | 1,186 | 2.93 | 36.52 | 65.85 |
Settings /wp-admin/admin.php?page=wp-w3d-settings | 990 | 3.08 | 39.19 | 23.88 |
All Sliders /wp-admin/edit.php?post_type=w3dslider | 1,290 | 3.39 | 41.65 | 26.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/wp-w3d/includes/metabox/init.php+756
count(): Parameter must be an array or an object that implements Countable
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 15 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=w3dslider
- > Warning in wp-content/plugins/wp-w3d/includes/metabox/init.php+756
count(): Parameter must be an array or an object that implements Countable
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 take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-w3d/public/views/ui-elements/grids/responsive3dgrid-samples.php
- > /wp-content/plugins/wp-w3d/public/views/sliders/simpleparallaxslider-markup-html.php
- > /wp-content/plugins/wp-w3d/public/views/sliders/3dboxslider-markup-html.php
- 58× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant W3D_ROOT_URL - assumed 'W3D_ROOT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-w3d/public/views/ui-elements/grids/responsive3dgrid-samples.php on line 358
- > PHP Warning
Use of undefined constant W3D_ROOT_URL - assumed 'W3D_ROOT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-w3d/public/views/sliders/static-content/sample-content.php on line 15
- > PHP Warning
Use of undefined constant W3D_ROOT_URL - assumed 'W3D_ROOT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-w3d/public/views/ui-elements/grids/responsive3dgrid-samples.php on line 81
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-w3d/public/views/ui-elements/grids/responsive3dgrid-markup-html.php:4
- > PHP Warning
Use of undefined constant W3D_ROOT_URL - assumed 'W3D_ROOT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-w3d/public/views/ui-elements/grids/responsive3dgrid-samples.php on line 25
- > PHP Warning
Use of undefined constant W3D_ROOT_URL - assumed 'W3D_ROOT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-w3d/public/views/ui-elements/grids/static-content/sample-content.php on line 25
- > PHP Warning
Use of undefined constant W3D_ROOT_URL - assumed 'W3D_ROOT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-w3d/public/views/ui-elements/grids/responsive3dgrid-samples.php on line 144
- > PHP Warning
Use of undefined constant W3D_ROOT_URL - assumed 'W3D_ROOT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-w3d/public/views/ui-elements/grids/responsive3dgrid-samples.php on line 102
- > PHP Warning
Use of undefined constant W3D_ROOT_URL - assumed 'W3D_ROOT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-w3d/public/views/ui-elements/grids/static-content/sample-content.php on line 35
- > PHP Notice
Undefined variable: data in wp-content/plugins/wp-w3d/public/views/sliders/simpleparallaxslider-markup-html.php on line 17
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: w3d project, depth, slider, grid, parallax...
wp-w3d/wp-w3d.php 85% from 13 tests
The entry point to "WP W3D plugin" version 0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
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
Success! There were no dangerous files found in this plugin11,596 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 553 | 734 | 3,720 |
PHP | 25 | 722 | 1,375 | 2,795 |
JavaScript | 15 | 1,139 | 351 | 2,781 |
Sass | 6 | 209 | 0 | 2,136 |
Markdown | 1 | 35 | 0 | 146 |
HTML | 1 | 3 | 5 | 18 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 40.44 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 177.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 146 | |
▷ Static methods | 103 | 70.55% |
▷ Public methods | 132 | 90.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 9.59% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
41 PNG files occupy 1.61MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/img/sample/simple-parallax/3.png | 82.47KB | 27.57KB | ▼ 66.57% |
includes/metabox/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
public/assets/img/sample/mouse-parallax/slide2-layer3.png | 16.17KB | 7.86KB | ▼ 51.42% |
includes/metabox/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
public/assets/img/sample/simple-parallax/default.png | 23.97KB | 7.75KB | ▼ 67.68% |