Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼296.84ms] Passed 4 tests
Server-side resources used by Nano Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.12 | 57.75 ▲3.01 |
Dashboard /wp-admin | 3.51 ▲0.10 | 32.88 ▼1.22 |
Posts /wp-admin/edit.php | 3.74 ▲0.09 | 39.48 ▲1.20 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.01 | 96.89 ▼1,180.51 |
Media Library /wp-admin/upload.php | 3.39 ▲0.08 | 24.84 ▼6.81 |
Add New /wp-admin/post-new.php?post_type=nano-slider | 3.72 | 44.08 |
Settings /wp-admin/edit.php?post_type=nano-slider&page=nano-settings-menu | 3.36 | 25.52 |
Nano Slider /wp-admin/edit.php?post_type=nano-slider | 3.43 | 26.61 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 14 new options
New WordPress options |
---|
nano_effect |
nano_height |
nano_randomStart |
nano_animSpeed |
widget_nano_widget |
nano_width |
nano_slices |
nano_directionNav |
nano_boxRows |
nano_pauseTime |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Nano Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,920 ▲175 | 16.23 ▲0.65 | 9.32 ▲2.94 | 2.23 ▼1.04 |
Dashboard /wp-admin | 2,925 ▲70 | 6.04 ▼0.15 | 119.68 ▼18.48 | 157.74 ▼4.65 |
Posts /wp-admin/edit.php | 2,730 ▲40 | 3.24 ▲0.01 | 65.17 ▲1.64 | 142.00 ▼2.15 |
Add New Post /wp-admin/post-new.php | 1,716 ▼38 | 21.00 ▼0.04 | 433.52 ▼7.85 | 156.33 ▼2.67 |
Media Library /wp-admin/upload.php | 1,735 ▲40 | 5.56 ▲0.04 | 145.36 ▼5.73 | 186.73 ▼11.34 |
Add New /wp-admin/post-new.php?post_type=nano-slider | 2,231 | 5.31 | 94.09 | 131.46 |
Settings /wp-admin/edit.php?post_type=nano-slider&page=nano-settings-menu | 1,456 | 2.39 | 53.94 | 121.17 |
Nano Slider /wp-admin/edit.php?post_type=nano-slider | 1,406 | 3.15 | 60.54 | 112.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_nano_widget
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
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/nanoslider/nano-slider.php:36
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 25 tag instead of maximum 10
nanoslider/nano-slider.php 92% from 13 tests
The main PHP script in "Nano Slider" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nanoslider.php" instead of "nano-slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,117 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 87 | 63 | 633 |
PHP | 1 | 55 | 14 | 312 |
CSS | 2 | 6 | 6 | 172 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 10 | |
▷ Named functions | 10 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/default/bullets.png | 1.25KB | 1.08KB | ▼ 13.74% |
themes/default/arrows.png | 0.80KB | 0.51KB | ▼ 36.53% |