84% just-fading-slider

Code Review | Just Fading Slider

WordPress plugin Just Fading Slider scored84%from 54 tests.

About plugin

  • Plugin page: just-fading-slider
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Aug 15, 2015
  • Latest release: Jun 3, 2018
  • Number of updates: 9
  • Update frequency: every 113.7 days
  • Top authors: webmaric (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /1,711 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.61ms] Passed 4 tests

A check of server-side resources used by Just Fading Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.46 ▼4.06
Dashboard /wp-admin3.38 ▲0.0351.07 ▼12.77
Posts /wp-admin/edit.php3.50 ▲0.1451.63 ▼2.33
Add New Post /wp-admin/post-new.php5.98 ▲0.0993.32 ▼3.28
Media Library /wp-admin/upload.php3.31 ▲0.0735.72 ▲6.95

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Just Fading Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲13713.62 ▼0.7413.37 ▲11.5639.79 ▼3.85
Dashboard /wp-admin2,204 ▲335.58 ▼0.0988.53 ▼4.0238.62 ▼3.31
Posts /wp-admin/edit.php2,123 ▲232.30 ▲0.2952.21 ▲14.3439.05 ▲4.05
Add New Post /wp-admin/post-new.php1,543 ▲1223.24 ▲0.02724.74 ▲103.0038.40 ▼11.53
Media Library /wp-admin/upload.php1,416 ▲164.21 ▼0.0599.09 ▼0.7344.10 ▼0.01

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× 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/just-fading-slider/jfs.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: jssor, slider, simple, responsive, slide...

just-fading-slider/jfs.php 92% from 13 tests

The entry point to "Just Fading Slider" version 1.0.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("just-fading-slider.php" instead of "jfs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin5,142 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,3707894,849
PHP31620291
CSS2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions24
▷ Named functions24100.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
8 PNG files occupy 0.15MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/a14.png3.45KB2.83KB▼ 18.18%
images/b05.png1.38KB1.22KB▼ 11.73%
images/a18.png3.21KB1.88KB▼ 41.38%
images/t01.png1.58KB0.74KB▼ 53.49%
images/b06.png1.84KB1.55KB▼ 15.84%