73% full-window-interactive-slider

Code Review | Full Window Interative Slider

WordPress plugin Full Window Interative Slider scored73%from 54 tests.

About plugin

  • Plugin page: full-window-inter...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 13, 2017
  • Latest release: May 6, 2017
  • Number of updates: 38
  • Update frequency: every 2.2 days
  • Top authors: delacalera (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /909 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.95ms] Passed 4 tests

Server-side resources used by Full Window Interative Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.63 ▼0.05
Dashboard /wp-admin3.33 ▲0.0249.86 ▼2.48
Posts /wp-admin/edit.php3.38 ▲0.0248.36 ▼2.95
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.45 ▼18.30
Media Library /wp-admin/upload.php3.25 ▲0.0236.76 ▲4.08
Add image /wp-admin/admin.php?page=full-window-interactive-slider3.3031.67
Image list /wp-admin/admin.php?page=main_menu3.2835.96

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: 2 new tables, 9 new options
New tables
wp_nt_fwms_slides
wp_nt_fwms_coordinates
New WordPress options
can_compress_scripts
nt_fwms_db_version
nt_fwms_coordinates_db_version
widget_theysaidso_widget
nt_fwms_version
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Full Window Interative Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.27 ▼0.172.52 ▲0.4439.39 ▼0.65
Dashboard /wp-admin2,232 ▲525.61 ▼0.0587.61 ▼0.4238.28 ▼7.52
Posts /wp-admin/edit.php2,134 ▲342.00 ▼0.1136.52 ▼3.4633.88 ▼6.02
Add New Post /wp-admin/post-new.php1,564 ▲3718.34 ▼4.63643.78 ▼1.8561.71 ▲6.54
Media Library /wp-admin/upload.php1,434 ▲374.22 ▼0.1098.31 ▼5.1143.76 ▲1.79
Add image /wp-admin/admin.php?page=full-window-interactive-slider1,0593.0042.4628.81
Image list /wp-admin/admin.php?page=main_menu1,0002.0627.2730.18

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=full-window-interactive-slider
    • > Notice in wp-content/plugins/full-window-interactive-slider/admin/add-image.php+128
    Undefined variable: hidden_field_name

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
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/full-window-interactive-slider/public/partials/full-window-interactive-slider-public-display.php
    • > /wp-content/plugins/full-window-interactive-slider/admin/partials/plugin-full-window-interactive-slider-display.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/full-window-interactive-slider/templates/header-full-window.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/full-window-interactive-slider/admin/add-image.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/full-window-interactive-slider/templates/header-full-window.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/full-window-interactive-slider/full-window-interactive-slider.php:29
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/full-window-interactive-slider/public/partials/full-window-interactive-slider-public-display.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/full-window-interactive-slider/admin/images-list.php:4

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: responsive, full window, mapped, slider, interactive...

full-window-interactive-slider/full-window-interactive-slider.php Passed 13 tests

The entry point to "Full Window Interative Slider" version 1.0.1 is a PHP file that has certain tags in its header comment area
60 characters long description:
Use this plugin to make full window size interactive sliders

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
Good job! No executable or dangerous file extensions detected1,257 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP16183606719
JavaScript383184369
CSS2431169

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.75
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3888.37%
▷ Protected methods00.00%
▷ Private methods511.63%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/pin.png10.08KB4.31KB▼ 57.25%