Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼1.92MB] [CPU: ▼54.91ms] Passed 4 tests
A check of server-side resources used by Wp Mock Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 4.97 ▼31.90 |
Dashboard /wp-admin | 2.10 ▼1.25 | 5.42 ▼52.89 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.06 ▼46.45 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.54 ▼88.39 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.99 ▼30.34 |
WP Mock Slider /wp-admin/edit.php?post_type=slider-image | 2.10 | 5.48 |
Add New /wp-admin/post-new.php?post_type=slider-image | 2.10 | 6.72 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wp Mock Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲211 | 13.38 ▼0.99 | 9.32 ▲7.63 | 35.16 ▼4.59 |
Dashboard /wp-admin | 2,241 ▲61 | 5.56 ▼0.09 | 85.19 ▼6.78 | 42.87 ▲3.83 |
Posts /wp-admin/edit.php | 2,149 ▲46 | 2.04 ▲0.08 | 40.43 ▲4.31 | 38.58 ▲3.02 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.11 ▼0.05 | 654.50 ▼15.79 | 35.23 ▼24.84 |
Media Library /wp-admin/upload.php | 1,446 ▲43 | 4.28 ▲0.06 | 105.42 ▼0.37 | 47.29 ▲2.90 |
WP Mock Slider /wp-admin/edit.php?post_type=slider-image | 1,110 | 1.96 | 32.40 | 31.07 |
Add New /wp-admin/post-new.php?post_type=slider-image | 1,772 | 3.62 | 61.66 | 32.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mock-slider-classie handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider-image
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mock-slider-classie handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider-image
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mock-slider-modernizr handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider-image
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mock-slider-main handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider-image
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mock-slider-normalize_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider-image
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mock-slider-demo_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider-image
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mock-slider-animate_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider-image
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mock-slider-mockup2_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider-image
- > Notice in wp-content/plugins/wp-mock-slider/mock-slider.php+175
Undefined index: large_heading
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider-image
- > Notice in wp-content/plugins/wp-mock-slider/mock-slider.php+176
Undefined index: slide_Description
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider-image
- > Notice in wp-content/plugins/wp-mock-slider/mock-slider.php+177
Undefined index: slide_link
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider-image
- > Notice in wp-content/plugins/wp-mock-slider/mock-slider.php+178
Undefined index: link_text
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider-image
- > Notice in wp-content/plugins/wp-mock-slider/mock-slider.php+179
Undefined index: link_target
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider-image
- > Notice in wp-content/plugins/wp-mock-slider/mock-slider.php+201
Trying to get property 'ID' of non-object
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slider-image
- > Notice in wp-content/plugins/wp-mock-slider/mock-slider.php+179
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-mock-slider/mock-slider.php:11
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mock-slider/mock-slider.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 92 tag instead of maximum 10
wp-mock-slider/mock-slider.php 92% from 13 tests
The main file in "Wp Mock Slider" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-mock-slider.php" instead of "mock-slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin3,816 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 543 | 16 | 3,003 |
SVG | 2 | 0 | 0 | 544 |
PHP | 1 | 52 | 11 | 140 |
JavaScript | 3 | 27 | 34 | 129 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin