Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/nextgen-nivoslider/includes/ngg-nivoslider-main.php+14
Function create_function() is deprecated
Server metrics [RAM: ▼1.72MB] [CPU: ▼51.35ms] Passed 4 tests
Analyzing server-side resources used by NextGen NivoSlider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.19 | 6.52 ▼32.42 |
Dashboard /wp-admin | 2.29 ▼1.01 | 7.14 ▼42.84 |
Posts /wp-admin/edit.php | 2.29 ▼1.07 | 7.14 ▼39.99 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.60 | 7.23 ▼90.14 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 6.68 ▼27.26 |
Nivo Slider /wp-admin/admin.php?page=nextgen-nivoslider/includes/ngg-nivoslider-admin.php | 2.29 | 6.62 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options |
---|
ngg_nivoslider_theme |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_nextgen-nivoslider |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for NextGen NivoSlider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.18 ▼1.40 | 1.66 ▼0.17 | 44.86 ▼0.18 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▼0.03 | 110.75 ▲1.16 | 38.68 ▼3.94 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.02 ▼0.04 | 40.74 ▲4.41 | 36.37 ▲2.78 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.06 ▲5.51 | 689.72 ▲72.28 | 55.29 ▲11.53 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.22 ▲0.03 | 96.59 ▼2.84 | 42.32 ▼0.39 |
Nivo Slider /wp-admin/admin.php?page=nextgen-nivoslider/includes/ngg-nivoslider-admin.php | 812 | 2.03 | 25.65 | 22.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/nextgen-nivoslider/includes/ngg-nivoslider-main.php+14
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 8 options in the database
- widget_nextgen-nivoslider
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- ngg_nivoslider_theme
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=nextgen-nivoslider/includes/ngg-nivoslider-admin.php
- > Deprecated in wp-content/plugins/nextgen-nivoslider/includes/ngg-nivoslider-main.php+14
Function create_function() is deprecated
- > GET request to /wp-admin/admin.php?page=nextgen-nivoslider/includes/ngg-nivoslider-admin.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in NGG_NivoSlider_Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/admin.php?page=nextgen-nivoslider/includes/ngg-nivoslider-admin.php
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=nextgen-nivoslider/includes/ngg-nivoslider-admin.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(WPNGG_NIVOSLIDER_PLUGIN_DIR/includes/ngg-nivoslider-widget.php): failed to open stream: No such file or directory in wp-content/plugins/nextgen-nivoslider/includes/ngg-nivoslider-main.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nextgen-nivoslider/includes/ngg-nivoslider-widget.php:3
- > PHP Fatal error
require_once(): Failed opening required 'WPNGG_NIVOSLIDER_PLUGIN_DIR/includes/ngg-nivoslider-widget.php' (include_path='.:/usr/share/php') in wp-content/plugins/nextgen-nivoslider/includes/ngg-nivoslider-main.php on line 3
- > PHP Warning
Use of undefined constant WPNGG_NIVOSLIDER_PLUGIN_DIR - assumed 'WPNGG_NIVOSLIDER_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/nextgen-nivoslider/includes/ngg-nivoslider-main.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/nextgen-nivoslider/ngg-nivoslider.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/nextgen-nivoslider/includes/ngg-nivoslider-admin.php:8
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Screenshots: Screenshot #1 (The NextGen NivoSlider widget configuration panel) image missing
nextgen-nivoslider/ngg-nivoslider.php 92% from 13 tests
The main PHP file in "NextGen NivoSlider" ver. 3.2.7 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nextgen-nivoslider.php" instead of "ngg-nivoslider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,872 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 227 | 160 | 1,727 |
JavaScript | 2 | 80 | 65 | 579 |
CSS | 6 | 28 | 59 | 566 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 79.25 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 6.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 3 | 5.36% |
▷ Public methods | 19 | 33.93% |
▷ Protected methods | 30 | 53.57% |
▷ Private methods | 7 | 12.50% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 49 | |
▷ Global constants | 49 | 100.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
11 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/bar/bullets.png | 1.25KB | 1.08KB | ▼ 13.74% |
themes/default/bullets.png | 1.25KB | 1.08KB | ▼ 13.74% |
themes/light/bullets.png | 3.21KB | 0.54KB | ▼ 83.24% |
themes/bar/arrows.png | 0.80KB | 0.51KB | ▼ 36.53% |
themes/light/arrows.png | 3.17KB | 0.52KB | ▼ 83.49% |