10% page-navi-slider

Code Review | Page navi slider

WordPress plugin Page navi slider scored 10% from 54 tests.

About plugin

  • Plugin page: page-navi-slider
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.8.1
  • WordPress version: 5.9.2
  • First release: Sep 14, 2013
  • Latest release: Nov 12, 2021
  • Number of updates: 348
  • Update frequency: every 8.6 days
  • Top authors: Iznogood1 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active / 41,691 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2455.02 ▲5.05
Dashboard /wp-admin3.64 ▲0.2334.87 ▲2.23
Posts /wp-admin/edit.php3.86 ▲0.2239.30 ▲2.02
Add New Post /wp-admin/post-new.php7.10 ▲0.1398.43 ▼1,170.49
Media Library /wp-admin/upload.php3.51 ▲0.2227.08 ▲3.37
Page navi slider /wp-admin/options-general.php?page=wpns_settings_admin3.4927.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,915 ▲15716.52 ▲0.8410.39 ▲4.582.26 ▼0.62
Dashboard /wp-admin2,903 ▲496.42 ▲0.23118.51 ▼26.46156.42 ▼7.30
Posts /wp-admin/edit.php2,699 ▲53.29 ▲0.0564.12 ▼0.42140.05 ▲0.97
Add New Post /wp-admin/post-new.php1,671 ▲1017.09 ▲1.09439.20 ▲22.51152.84 ▲1.17
Media Library /wp-admin/upload.php1,703 ▲85.66 ▲0.18160.57 ▲25.15207.63 ▲26.69
Page navi slider /wp-admin/options-general.php?page=wpns_settings_admin2,0443.3678.31277.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

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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript615165950
PHP57660495
CSS3152476
PO File2237322347

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 code0.19
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
style/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
js/jsColor/hs.png2.62KB7.54KB0.00%
style/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
style/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
style/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%