74% easy-fullscreen-slider

Code Review | Easy Fullscreen Slider

WordPress plugin Easy Fullscreen Slider scored74%from 54 tests.

About plugin

  • Plugin page: easy-fullscreen-s...
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.1
  • WordPress version: 6.3.1
  • First release: Jul 16, 2014
  • Latest release: Jan 9, 2015
  • Number of updates: 24
  • Update frequency: every 7.4 days
  • Top authors: Sarven (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /12,505 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.05MB] [CPU: ▼18.37ms] Passed 4 tests

Server-side resources used by Easy Fullscreen Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0030.42 ▼8.53
Dashboard /wp-admin3.39 ▲0.0948.55 ▼5.83
Posts /wp-admin/edit.php3.50 ▲0.1553.41 ▼14.26
Add New Post /wp-admin/post-new.php5.52 ▼0.3675.93 ▼44.84
Media Library /wp-admin/upload.php3.31 ▲0.0936.77 ▼0.69
Easy Fullscreen Slider /wp-admin/options-general.php?page=easy-fullscreen-slider3.4640.66

Server storage [IO: ▲9.44MB] [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: 185 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
efs-settings
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Fullscreen Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.251.90 ▲0.0949.06 ▲8.94
Dashboard /wp-admin2,202 ▲225.63 ▼0.0286.98 ▼6.4337.98 ▼2.96
Posts /wp-admin/edit.php2,104 ▼11.99 ▲0.0538.88 ▼3.5133.75 ▼10.53
Add New Post /wp-admin/post-new.php7,599 ▲6,07322.69 ▲1.641,036.14 ▲383.9547.45 ▼3.39
Media Library /wp-admin/upload.php1,404 ▲14.27 ▲0.06100.11 ▲0.2944.22 ▲2.94
Easy Fullscreen Slider /wp-admin/options-general.php?page=easy-fullscreen-slider2,3403.3245.74275.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method EasyFullscreenSlider::deactivate() should not be called statically
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • efs-settings
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 93× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-fullscreen-slider/templates/settings_post.php on line 80
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-fullscreen-slider/templates/settings_post.php on line 77
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-fullscreen-slider/templates/settings_post.php on line 6
    • > PHP Notice
      Undefined variable: values in wp-content/plugins/easy-fullscreen-slider/templates/settings_post.php on line 80
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-fullscreen-slider/templates/settings_post.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-fullscreen-slider/templates/settings_post.php on line 26
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-fullscreen-slider/templates/settings_post.php on line 12
    • > PHP Notice
      Undefined variable: default_values in wp-content/plugins/easy-fullscreen-slider/templates/settings_post.php on line 69
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-fullscreen-slider/templates/settings_post.php on line 20
    • > PHP Notice
      Undefined variable: values in wp-content/plugins/easy-fullscreen-slider/templates/settings_post.php on line 61

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: supersized, background, slideshow, slider, fullscreen

easy-fullscreen-slider/easy-fullscreen-slider.php 92% from 13 tests

The main PHP file in "Easy Fullscreen Slider" ver. 2.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 195 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,109 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP55191884
CSS32325174
JavaScript4118551

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity17.33
▷ Minimum class complexity2.00
▷ Maximum class complexity47.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
171 PNG files occupy 9.29MB with 2.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/bg_patterns/smooth_wall.png105.09KB77.61KB▼ 26.14%
assets/img/bg_patterns/gold_scale.png1.37KB1.72KB0.00%
assets/img/pause.png1.10KB0.35KB▼ 68.08%
assets/img/bg_patterns/lghtmesh.png55.38KB29.98KB▼ 45.87%
assets/img/bg_patterns/littleknobs.png0.28KB0.28KB0.35%