84% oik-nivo-slider

Code Review | oik-nivo-slider

WordPress plugin oik-nivo-slider scored84%from 54 tests.

About plugin

  • Plugin page: oik-nivo-slider
  • Plugin version: 1.16.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9+
  • WordPress version: 6.3.1
  • First release: Apr 11, 2012
  • Latest release: Oct 17, 2023
  • Number of updates: 92
  • Update frequency: every 45.7 days
  • Top authors: bobbingwide (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /96,124 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.34ms] Passed 4 tests

An overview of server-side resources used by oik-nivo-slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.49 ▼0.64
Dashboard /wp-admin3.34 ▲0.0445.07 ▼1.79
Posts /wp-admin/edit.php3.39 ▲0.0445.38 ▼4.18
Add New Post /wp-admin/post-new.php5.92 ▲0.0478.80 ▼22.43
Media Library /wp-admin/upload.php3.27 ▲0.0432.89 ▼0.97

Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 85 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by oik-nivo-slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.14 ▼0.271.64 ▲0.1039.97 ▼0.95
Dashboard /wp-admin2,199 ▲195.52 ▼0.1481.62 ▼6.1738.69 ▼1.71
Posts /wp-admin/edit.php2,107 ▲71.95 ▼0.0634.94 ▲0.8635.10 ▲0.09
Add New Post /wp-admin/post-new.php1,542 ▲1123.23 ▲0.21630.22 ▼9.4647.63 ▼5.42
Media Library /wp-admin/upload.php1,410 ▲134.21 ▲0.05105.48 ▲4.9946.29 ▲4.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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
Even though no errors were found, this is by no means 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oik-nivo-slider/oik-nivo-slider.php:79

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 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
Please fix the following attributes:
  • Tested up to: Version format is invalid
  • Screenshots: Add images for these screenshots: #1 (Nivo slider - default theme [nivo]), #2 (Nivo slider - bar theme [nivo theme=bar]), #3 (Nivo slider - dark theme [nivo theme=dark]), #4 (Nivo slider - light theme [nivo theme=light]), #5 (Nivo slider - oik theme - not hovered over [nivo theme=oik ]), #6 (Nivo slider - oik theme - image hovered over), #7 (Nivo slider - oik theme - caption hovered over), #8 (Nivo slider - default271 theme [nivo theme=default271]), #9 (Nivo slider - orman theme [nivo theme=orman]), #10 (Nivo slider - pascal theme [nivo theme=pascal]), #11 (Nivo slider - oik271 theme [nivo theme=oik271]), #12 (oik Nivo slider options page)
You can take inspiration from this readme.txt

oik-nivo-slider/oik-nivo-slider.php Passed 13 tests

The principal PHP file in "oik-nivo-slider" v. 1.16.3 is loaded by WordPress automatically on each request
46 characters long description:
[nivo] shortcode for the Nivo slider using oik

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin4,104 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript92442391,619
CSS13941871,127
PHP495581608
Pascal145268506
PO File210498244

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions40
▷ Named functions40100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
26 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
themes/light/arrows.png3.17KB0.52KB▼ 83.49%
themes/light/bullets.png3.21KB0.54KB▼ 83.24%
themes/oik/arrows.png0.89KB0.54KB▼ 39.47%
themes/pascal/arrows.png5.76KB2.00KB▼ 65.33%
themes/orman/slider.png35.25KB9.03KB▼ 74.38%