10% nextgen-3d-flux-slider-template

Code Review | NextGEN 3D and 2D Animated Flux Slider Template

WordPress plugin NextGEN 3D and 2D Animated Flux Slider Template scored 10% from 54 tests.

About plugin

  • Plugin page: nextgen-3d-flux-s...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Jan 22, 2013
  • Latest release: Mar 20, 2013
  • Number of updates: 15
  • Update frequency: every 83.7 days
  • Top authors: mohsinrasool (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active / 29,297 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-3d-flux-slider-template/nextgen-3D-flux-slider-template.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; ngg3DFluxSliderview has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼55.49ms] Passed 4 tests

Server-side resources used by NextGEN 3D and 2D Animated Flux Slider Template
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.85 ▼43.84
Dashboard /wp-admin2.08 ▼1.225.86 ▼45.90
Posts /wp-admin/edit.php2.08 ▼1.275.74 ▼44.39
Add New Post /wp-admin/post-new.php2.08 ▼3.806.90 ▼87.84
Media Library /wp-admin/upload.php2.08 ▼1.155.80 ▼36.10
NextGen 3D Slider /wp-admin/options-general.php?page=ngg-3dfluxslider2.085.12

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 11 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
ng_3dfluxslider_pagination
db_upgraded
ng_3dfluxslider_delay
ng_3dfluxslider_caption
theysaidso_admin_options
ng_3dfluxslider_controls
ng_3dfluxslider_transitions
...

Browser metrics Passed 4 tests

An overview of browser requirements for NextGEN 3D and 2D Animated Flux Slider Template
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲12713.77 ▼0.6410.36 ▲8.4944.91 ▲0.52
Dashboard /wp-admin2,210 ▲45.83 ▼0.03103.94 ▼5.7543.07 ▲0.02
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0338.76 ▲4.1533.75 ▼2.50
Add New Post /wp-admin/post-new.php1,536 ▲2221.42 ▲3.73855.48 ▲155.2358.43 ▼22.14
Media Library /wp-admin/upload.php1,392 ▲104.24 ▲0.1097.00 ▼7.6641.49 ▼9.29
NextGen 3D Slider /wp-admin/options-general.php?page=ngg-3dfluxslider1,2435.67148.2341.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/nextgen-3d-flux-slider-template/nextgen-3D-flux-slider-template.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; ngg3DFluxSliderview has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 11 options
    • db_upgraded
    • ng_3dfluxslider_pagination
    • ng_3dfluxslider_controls
    • widget_recent-posts
    • widget_theysaidso_widget
    • ng_3dfluxslider_transitions
    • widget_recent-comments
    • theysaidso_admin_options
    • ng_3dfluxslider_caption
    • ng_3dfluxslider_delay
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=ngg-3dfluxslider
    • > Deprecated in wp-content/plugins/nextgen-3d-flux-slider-template/nextgen-3D-flux-slider-template.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; ngg3DFluxSliderview has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ngg-3dfluxslider
    • > Deprecated in wp-content/plugins/nextgen-3d-flux-slider-template/nextgen-3D-flux-slider-template.php+47
    Function create_function() is deprecated

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/nextgen-3d-flux-slider-template/template-nggsliderview.php
  • 2× 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/nextgen-3d-flux-slider-template/admin-settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nextgen-3d-flux-slider-template/admin-settings.php:9

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 take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=ngg-3dfluxslider
    • > 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=ngg-3dfluxslider
    • > 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=ngg-3dfluxslider
    • > 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=ngg-3dfluxslider
    • > 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=ngg-3dfluxslider
    • > 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=ngg-3dfluxslider
    • > 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 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

nextgen-3d-flux-slider-template/nextgen-3D-flux-slider-template.php 85% from 13 tests

"NextGEN 3D and 2D Animated Flux Slider Template" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("nextgen-3d-flux-slider-template.php" instead of "nextgen-3D-flux-slider-template.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)

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
There were no executable files found in this plugin307 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34124223
JavaScript11761
CSS12023

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin