Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.69ms] Passed 4 tests
Server-side resources used by NV Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 45.08 ▲0.95 |
Dashboard /wp-admin | 3.39 ▲0.09 | 52.02 ▼1.58 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 50.63 ▼1.49 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 102.28 ▼0.65 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.63 ▲2.77 |
Sliders /wp-admin/edit.php?post_type=nv-slider | 3.35 | 38.53 |
Add New /wp-admin/post-new.php?post_type=nv-slider | 3.44 | 57.08 |
Settings /wp-admin/edit.php?post_type=nv-slider&page=nv-slider/nv-slider.php | 3.30 | 33.20 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_nv_slider |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
NV Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 13.46 ▼0.89 | 8.36 ▲6.68 | 43.82 ▼0.20 |
Dashboard /wp-admin | 2,229 ▲52 | 5.56 ▼0.04 | 88.46 ▼9.67 | 43.26 ▼2.12 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 2.02 ▲0.02 | 35.56 ▼4.48 | 37.25 ▲2.88 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.60 ▲0.53 | 659.61 ▼11.20 | 59.11 ▼2.57 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.17 ▼0.02 | 103.88 ▼2.97 | 45.08 ▲0.64 |
Sliders /wp-admin/edit.php?post_type=nv-slider | 1,112 | 1.98 | 30.59 | 31.45 |
Add New /wp-admin/post-new.php?post_type=nv-slider | 2,284 | 7.59 | 170.01 | 66.08 |
Settings /wp-admin/edit.php?post_type=nv-slider&page=nv-slider/nv-slider.php | 1,144 | 1.98 | 25.25 | 39.28 |
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
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_nv_slider
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nv-slider/admin/post_meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/nv-slider/admin/index.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/nv-slider/nv-slider.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nv-slider/inc/shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/nv-slider/inc/utilities.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (screenshot-1.png displays the running NV Slider), #2 (screenshot-2.png displaying lists of slider in dasbboard area with thumbnail indicator), #3 (screenshot-3.png plugin settings and instruction)
nv-slider/nv-slider.php Passed 13 tests
"NV Slider" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
129 characters long description:
A responsive, simple, light and easy customizable wordpress content slider and comes with unlimeted number of slides and effects.
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
No dangerous file extensions were detected1,268 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 75 | 65 | 522 |
PHP | 7 | 100 | 50 | 512 |
CSS | 2 | 26 | 22 | 154 |
Markdown | 1 | 23 | 0 | 80 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.57MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bullets.png | 38.32KB | 0.22KB | ▼ 99.42% |
screenshot-3.png | 45.22KB | 19.52KB | ▼ 56.82% |
screenshot-2.png | 54.06KB | 16.21KB | ▼ 70.03% |
assets/images/arrows.png | 51.21KB | 0.74KB | ▼ 98.56% |
screenshot-1.png | 389.96KB | 107.12KB | ▼ 72.53% |