94% slyd

Code Review | Slyd

WordPress plugin Slyd scored 94% from 54 tests.

About plugin

  • Plugin page: slyd
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 5.8.1
  • First release: Feb 15, 2012
  • Latest release: Oct 22, 2012
  • Number of updates: 43
  • Update frequency: every 17.7 days
  • Top authors: paraplegicpanda (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active / 13,765 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.30MB] [CPU: ▼149.22ms] Passed 4 tests

A check of server-side resources used by Slyd
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1634.56 ▲13.10
Dashboard /wp-admin3.11 ▲0.0542.61 ▲2.87
Posts /wp-admin/edit.php3.16 ▲0.0543.93 ▼2.20
Add New Post /wp-admin/post-new.php4.09 ▼1.3550.12 ▼599.35
Media Library /wp-admin/upload.php3.05 ▲0.0534.81 ▲1.81

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Slyd
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲8315.93 ▲0.397.29 ▼1.0151.60 ▼0.11
Dashboard /wp-admin2,989 ▲555.95 ▲0.01135.40 ▼5.02105.13 ▼14.73
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0163.74 ▼10.9688.69 ▼2.54
Add New Post /wp-admin/post-new.php1,712 ▲11817.12 ▼1.77359.24 ▼13.41117.17 ▲7.01
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.01150.60 ▲0.87119.91 ▲4.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/slyd/slyd.php:400

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can look at the official readme.txt

slyd/slyd.php Passed 13 tests

The main file in "Slyd" v. 1.3.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
61 characters long description:
Slyd is an animated slider to display your latest blog posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected578 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15169285
JavaScript245235159
CSS100134

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions7
▷ Named functions7100.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
2 PNG files occupy 0.10MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
previous.png49.70KB0.66KB▼ 98.68%
next.png50.06KB0.64KB▼ 98.72%