Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/page-navi-slider/inc/install.php+101
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.20MB] [CPU: ▼290.72ms] Passed 4 tests
This is a short check of server-side resources used by Page navi slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.24 | 55.02 ▲5.05 |
Dashboard /wp-admin | 3.64 ▲0.23 | 34.87 ▲2.23 |
Posts /wp-admin/edit.php | 3.86 ▲0.22 | 39.30 ▲2.02 |
Add New Post /wp-admin/post-new.php | 7.10 ▲0.13 | 98.43 ▼1,170.49 |
Media Library /wp-admin/upload.php | 3.51 ▲0.22 | 27.08 ▲3.37 |
Page navi slider /wp-admin/options-general.php?page=wpns_settings_admin | 3.49 | 27.26 |
Server storage [IO: ▲0.21MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 2 new options
New WordPress options |
---|
wpns_settings |
wpns_settings_preview |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Page navi slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,915 ▲157 | 16.52 ▲0.84 | 10.39 ▲4.58 | 2.26 ▼0.62 |
Dashboard /wp-admin | 2,903 ▲49 | 6.42 ▲0.23 | 118.51 ▼26.46 | 156.42 ▼7.30 |
Posts /wp-admin/edit.php | 2,699 ▲5 | 3.29 ▲0.05 | 64.12 ▼0.42 | 140.05 ▲0.97 |
Add New Post /wp-admin/post-new.php | 1,671 ▲10 | 17.09 ▲1.09 | 439.20 ▲22.51 | 152.84 ▲1.17 |
Media Library /wp-admin/upload.php | 1,703 ▲8 | 5.66 ▲0.18 | 160.57 ▲25.15 | 207.63 ▲26.69 |
Page navi slider /wp-admin/options-general.php?page=wpns_settings_admin | 2,044 | 3.36 | 78.31 | 277.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/page-navi-slider/inc/settings.php:331
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/page-navi-slider/inc/settings.php:331
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/page-navi-slider/you_strings_to_translate.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
page-navi-slider/page-navi-slider.php Passed 13 tests
The main PHP file in "Page navi slider" ver. 1.3.5 adds more information about the plugin and also serves as the entry point for this plugin
93 characters long description:
An advanced, fully customizable and actually responsive navigation plugin using jQuery slider
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
There were no executable files found in this plugin2,268 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 151 | 65 | 950 |
PHP | 5 | 76 | 60 | 495 |
CSS | 3 | 1 | 52 | 476 |
PO File | 2 | 237 | 322 | 347 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
15 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
style/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
js/jsColor/hs.png | 2.62KB | 7.54KB | 0.00% |
style/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
style/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
style/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |