Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-includes/plugin.php+1001
Undefined offset: 0
Server metrics [RAM: ▼1.96MB] [CPU: ▼71.44ms] Passed 4 tests
Server-side resources used by Nivo Slider Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 6.40 ▼40.22 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.70 ▼49.07 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.72 ▼47.40 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.39 ▼145.81 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 10.23 ▼43.46 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_nivosliderwidget |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Nivo Slider Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲122 | 13.81 ▼0.34 | 13.01 ▲10.46 | 55.42 ▼9.38 |
Dashboard /wp-admin | 2,191 ▲11 | 5.74 ▲0.11 | 122.40 ▲19.30 | 55.88 ▲11.25 |
Posts /wp-admin/edit.php | 2,113 ▲10 | 2.28 ▲0.28 | 65.14 ▲20.86 | 47.66 ▲1.50 |
Add New Post /wp-admin/post-new.php | 1,404 ▼0 | 17.56 ▼0.48 | 674.16 ▼229.29 | 66.86 ▼8.25 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.25 ▼0.06 | 162.02 ▼13.29 | 69.95 ▼6.08 |
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
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_register_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 nivo_default_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_nivosliderwidget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nivo-slider-widget/nivo-slider-widget.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Donate link: Invalid url: ""
- Screenshots: Screenshot #1 (`/assets/screenshot-1.png`) image missing
nivo-slider-widget/nivo-slider-widget.php Passed 13 tests
The entry point to "Nivo Slider Widget" version 1.0 is a PHP file that has certain tags in its header comment area
28 characters long description:
A Nivo Slider Widget plugin.
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
No dangerous file extensions were detected801 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 95 | 74 | 553 |
CSS | 2 | 8 | 23 | 165 |
PHP | 1 | 44 | 10 | 80 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.46MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
slider_css/arrows.png | 0.80KB | 0.51KB | ▼ 36.53% |
assets/screenshot-1.png | 471.34KB | 121.10KB | ▼ 74.31% |
slider_css/bullets.png | 1.25KB | 1.08KB | ▼ 13.74% |