82% slider-spider

Code Review | Slider Spider

WordPress plugin Slider Spider scored 82% from 54 tests.

About plugin

  • Plugin page: slider-spider
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 5.8.1
  • First release: Jan 31, 2018
  • Latest release: Jan 31, 2018
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: unreleased01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 348 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼145.04ms] Passed 4 tests

Analyzing server-side resources used by Slider Spider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.04 ▲0.3246.69 ▲19.26
Dashboard /wp-admin3.33 ▲0.2847.46 ▼5.50
Posts /wp-admin/edit.php3.38 ▲0.2747.39 ▲5.34
Add New Post /wp-admin/post-new.php5.64 ▲0.2189.26 ▼571.00
Media Library /wp-admin/upload.php3.21 ▲0.2029.90 ▼9.00
Add New Slider /wp-admin/post-new.php?post_type=slider-spider3.3946.62
All Sliders /wp-admin/edit.php?post_type=slider-spider3.2632.98
Guide /wp-admin/edit.php?post_type=slider-spider&page=guide3.1828.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Slider Spider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,871 ▲27517.08 ▲1.5714.35 ▲5.1155.37 ▲8.45
Dashboard /wp-admin3,004 ▲706.41 ▲0.21162.50 ▼17.33105.61 ▼1.67
Posts /wp-admin/edit.php2,805 ▲662.75 ▲0.0463.14 ▼3.7160.26 ▼28.82
Add New Post /wp-admin/post-new.php1,773 ▲9018.19 ▼0.27396.35 ▼2.0798.02 ▼7.17
Media Library /wp-admin/upload.php1,796 ▼115.35 ▲0.34138.67 ▼25.87127.41 ▲8.39
Add New Slider /wp-admin/post-new.php?post_type=slider-spider3,5879.22223.71138.98
All Sliders /wp-admin/edit.php?post_type=slider-spider1,4962.6567.1556.53
Guide /wp-admin/edit.php?post_type=slider-spider&page=guide1,1222.3760.7249.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/slider-spider/public/partials/slider-spider-public-display.php
    • > /wp-content/plugins/slider-spider/admin/partials/slider-spider-admin-display.php
    • > /wp-content/plugins/slider-spider/admin/partials/thumbs-gallery.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: images in wp-content/plugins/slider-spider/admin/partials/thumbs-gallery.php on line 5
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/slider-spider/admin/partials/thumbs-gallery.php on line 5
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/slider-spider/admin/partials/thumbs-gallery.php on line 17
    • > PHP Notice
      Undefined variable: images in wp-content/plugins/slider-spider/admin/partials/thumbs-gallery.php on line 17

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/post-new.php?post_type=slider-spider
    • > Javascript (severe) in unknown
    /wp-admin/post-new.php?post_type=slider-spider 590:3 Uncaught TypeError: $ is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (2.)
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

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

This is the main PHP file of "Slider Spider" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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
Good job! No executable or dangerous file extensions detected1,262 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP203096561,036
CSS9750199
JavaScript837927

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods44
▷ Static methods24.55%
▷ Public methods3988.64%
▷ Protected methods00.00%
▷ Private methods511.36%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/slider-spider-icon.png0.41KB0.53KB0.00%
admin/img/slides-stack-icon.png0.52KB0.50KB▼ 3.78%
public/img/slides-stack-icon.png0.52KB0.50KB▼ 3.78%