10% nextgen-flex-slider-template

Code Review | Responsive NextGEN Flex Slider Template

WordPress plugin Responsive NextGEN Flex Slider Template scored10%from 54 tests.

About plugin

  • Plugin page: nextgen-flex-slid...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 6.3.1
  • First release: Dec 21, 2012
  • Latest release: Feb 27, 2014
  • Number of updates: 19
  • Update frequency: every 22.8 days
  • Top authors: mohsinrasool (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

600+ active /36,532 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/nextgen-flex-slider-template/nextgen-flex-slider-template.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; nggSliderview has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼59.91ms] Passed 4 tests

A check of server-side resources used by Responsive NextGEN Flex Slider Template
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.85 ▼37.67
Dashboard /wp-admin2.09 ▼1.255.35 ▼59.37
Posts /wp-admin/edit.php2.10 ▼1.266.96 ▼45.30
Add New Post /wp-admin/post-new.php2.10 ▼3.795.68 ▼97.31
Media Library /wp-admin/upload.php2.10 ▼1.136.01 ▼29.90
NextGen Slider /wp-admin/options-general.php?page=ng-slider2.106.09

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 13 new options
New WordPress options
ng_slider_order
ng_slider_direction_nav
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
ng_slider_slideshow_speed
ng_slider_display_content
widget_recent-comments
ng_slider_theme
can_compress_scripts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive NextGEN Flex Slider Template
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲11613.58 ▼0.619.23 ▲7.3044.57 ▲1.17
Dashboard /wp-admin2,222 ▲195.80 ▼0.1198.26 ▼6.1038.49 ▼3.99
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0039.37 ▼2.1136.02 ▲1.67
Add New Post /wp-admin/post-new.php1,548 ▲2223.32 ▲5.65680.62 ▲43.0663.26 ▼7.26
Media Library /wp-admin/upload.php1,407 ▲74.22 ▼0.01106.76 ▲3.4547.64 ▼0.02
NextGen Slider /wp-admin/options-general.php?page=ng-slider1,4425.57157.0842.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/nextgen-flex-slider-template/nextgen-flex-slider-template.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; nggSliderview has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 13 options
    • ng_slider_direction_nav
    • ng_slider_pagination
    • ng_slider_slideshow_speed
    • widget_recent-comments
    • ng_slider_display_content
    • ng_slider_us_width_for_img_slider
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ng-slider
    • > Deprecated in wp-content/plugins/nextgen-flex-slider-template/nextgen-flex-slider-template.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; nggSliderview has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=ng-slider
    • > Deprecated in wp-content/plugins/nextgen-flex-slider-template/nextgen-flex-slider-template.php+52
    Function create_function() is deprecated

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/nextgen-flex-slider-template/template-nggsliderview.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nextgen-flex-slider-template/admin-settings.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nextgen-flex-slider-template/admin-settings.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=ng-slider
    • > Network (severe)
    https://wpdevsnippets.com/plugin-images/icon_doc_find.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=ng-slider
    • > Network (severe)
    https://wpdevsnippets.com/plugin-images/icon_wordpress_blue.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=ng-slider
    • > Network (severe)
    https://wpdevsnippets.com/plugin-images/icon_person_help.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=ng-slider
    • > Network (severe)
    https://wpdevsnippets.com/plugin-images/icon_thumb_up.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=ng-slider
    • > Network (severe)
    https://wpdevsnippets.com/plugin-images/btn_donate.gif - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=ng-slider
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
The official readme.txt might help

nextgen-flex-slider-template/nextgen-flex-slider-template.php 92% from 13 tests

"Responsive NextGEN Flex Slider Template" version 1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin879 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS5119105465
PHP38046381
JavaScript10533

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/blue/prev-next.png3.01KB1.73KB▼ 42.58%
images/blue/flex-slide-nav.png1.16KB1.11KB▼ 4.71%
images/grey/bg_direction_nav.png1.17KB1.13KB▼ 3.35%
images/black/bg_direction_nav.png1.82KB0.79KB▼ 56.38%