84% fancy-slider

Code Review | Fancy Slider

WordPress plugin Fancy Slider scored84%from 54 tests.

About plugin

  • Plugin page: fancy-slider
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 8, 2020
  • Latest release: Sep 5, 2023
  • Number of updates: 8
  • Update frequency: every 155.9 days
  • Top authors: tishonator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /607 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
This plugin's installer ran successfully

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

A check of server-side resources used by Fancy Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.53 ▲1.86
Dashboard /wp-admin3.38 ▲0.0746.17 ▼4.40
Posts /wp-admin/edit.php3.43 ▲0.0846.41 ▼2.55
Add New Post /wp-admin/post-new.php5.98 ▲0.0988.04 ▼6.57
Media Library /wp-admin/upload.php3.30 ▲0.0735.22 ▲0.70

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Fancy Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7613.77 ▼0.531.69 ▼0.1744.07 ▲1.68
Dashboard /wp-admin2,239 ▲515.09 ▲0.2298.66 ▼9.0541.81 ▼7.44
Posts /wp-admin/edit.php2,117 ▲312.44 ▲0.4234.92 ▼5.2631.62 ▼3.56
Add New Post /wp-admin/post-new.php1,546 ▲417.82 ▼5.10664.91 ▼3.8236.20 ▼24.77
Media Library /wp-admin/upload.php1,435 ▲474.46 ▲0.2889.30 ▼19.9242.08 ▼3.17

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
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/fancy-slider/fancy-slider.php:352

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 33 tag instead of maximum 10
The official readme.txt is a good inspiration

fancy-slider/fancy-slider.php Passed 13 tests

Analyzing the main PHP file in "Fancy Slider" version 1.0.1
122 characters long description:
Fancy Slider plugin allows you to insert and configure a Responsive jQuery Slider into your WordPress site as a shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected872 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1410524
PHP19157204
JavaScript35516144

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.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 Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin