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.67MB] [CPU: ▼16.87ms] Passed 4 tests
This is a short check of server-side resources used by Ework Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.75 ▲5.92 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.56 ▼5.56 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.26 ▲1.09 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 35.41 ▼61.83 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.26 ▼1.18 |
Add New /wp-admin/post-new.php?post_type=ework_slider | 3.11 | 32.93 |
Ework Sliders /wp-admin/edit.php?post_type=ework_slider | 3.30 | 33.28 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ework Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲228 | 14.05 ▼0.34 | 6.80 ▲4.97 | 47.05 ▲2.13 |
Dashboard /wp-admin | 2,249 ▲58 | 5.86 ▼0.04 | 99.20 ▼4.73 | 35.75 ▼4.49 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.01 ▼0.04 | 35.46 ▲0.08 | 34.17 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,550 ▲36 | 17.41 ▼0.06 | 662.08 ▼10.88 | 52.56 ▲1.37 |
Media Library /wp-admin/upload.php | 1,425 ▲43 | 4.25 ▼0.03 | 97.35 ▼3.60 | 41.71 ▼0.74 |
Add New /wp-admin/post-new.php?post_type=ework_slider | 1,592 | 2.53 | 49.60 | 51.88 |
Ework Sliders /wp-admin/edit.php?post_type=ework_slider | 1,113 | 1.95 | 31.96 | 29.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=ework_slider
- > Notice in wp-content/plugins/ework-flexslider/ework_slider.php+222
Undefined index: ework_slider_box_nonce
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ework_slider
- > Notice in wp-content/plugins/ework-flexslider/ework_slider.php+178
Undefined offset: 0
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ework_slider
- > Notice in wp-content/plugins/ework-flexslider/ework_slider.php+186
Undefined offset: 1
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ework_slider
- > Notice in wp-content/plugins/ework-flexslider/ework_slider.php+194
Undefined offset: 2
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ework_slider
- > Notice in wp-content/plugins/ework-flexslider/ework_slider.php+202
Undefined offset: 3
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ework_slider
- > Notice in wp-content/plugins/ework-flexslider/ework_slider.php+210
Undefined offset: 4
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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ework-flexslider/ework_slider.php:14
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== ework-flexslider ===
)
ework-flexslider/ework_slider.php 92% from 13 tests
The principal PHP file in "Ework Slider" v. 0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ework-flexslider.php" instead of "ework_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
Good job! No executable or dangerous file extensions detected2,726 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 0 | 1,252 |
JavaScript | 6 | 147 | 213 | 1,073 |
PHP | 1 | 46 | 24 | 249 |
HTML | 3 | 54 | 0 | 84 |
CSS | 1 | 13 | 26 | 68 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 13 | |
▷ Named functions | 13 | 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
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 |
img/bg_play_pause.png | 1.51KB | 0.52KB | ▼ 65.52% |