88% slidy

Code Review | Slidy

WordPress plugin Slidy scored 88% from 54 tests.

About plugin

  • Plugin page: slidy
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.0
  • WordPress version: 5.8.1
  • First release: Sep 14, 2014
  • Latest release: Jan 29, 2015
  • Number of updates: 15
  • Update frequency: every 9.1 days
  • Top authors: gungorbudak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,931 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.27MB] [CPU: ▼152.61ms] Passed 4 tests

Analyzing server-side resources used by Slidy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1931.28 ▲9.78
Dashboard /wp-admin3.13 ▲0.0848.97 ▲11.22
Posts /wp-admin/edit.php3.18 ▲0.0732.29 ▼11.51
Add New Post /wp-admin/post-new.php4.11 ▼1.3248.59 ▼608.86
Media Library /wp-admin/upload.php3.07 ▲0.0730.70 ▲0.16
Add New /wp-admin/post-new.php?post_type=slide3.0030.25
All Slides /wp-admin/edit.php?post_type=slide3.1134.38
Categories /wp-admin/edit-tags.php?taxonomy=slide-category&post_type=slide3.0728.52

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Slidy: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,861 ▲26516.38 ▲0.7113.47 ▲5.4946.00 ▼6.15
Dashboard /wp-admin2,999 ▲685.87 ▼0.06129.62 ▼16.91137.74 ▲23.83
Posts /wp-admin/edit.php2,779 ▲402.59 ▼0.1259.39 ▼1.4287.80 ▲1.78
Add New Post /wp-admin/post-new.php1,698 ▼17418.89 ▼0.26374.82 ▼3.78119.85 ▲9.22
Media Library /wp-admin/upload.php1,790 ▼205.03 ▲0.02126.61 ▼22.90142.59 ▲20.64
Add New /wp-admin/post-new.php?post_type=slide3,5179.25226.65148.78
All Slides /wp-admin/edit.php?post_type=slide1,5072.5756.9576.62
Categories /wp-admin/edit-tags.php?taxonomy=slide-category&post_type=slide1,7782.3957.2281.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=slide
    • > Notice in wp-content/plugins/slidy/slidy.php+225
    Undefined index: slidy_slide_link_nonce
    • > GET request to /wp-admin/post-new.php?post_type=slide
    • > Notice in wp-content/plugins/slidy/slidy.php+207
    Undefined index: std

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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_action() in wp-content/plugins/slidy/slidy.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 41 tag instead of maximum 10
You can take inspiration from this readme.txt

slidy/slidy.php Passed 13 tests

The principal PHP file in "Slidy" v. 0.0.3 is loaded by WordPress automatically on each request
104 characters long description:
Slidy is a responsive jQuery slider that uses slick carousel and that is fully integrated into Wordpress

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
Everything looks great! No dangerous files found in this plugin2,018 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2499191,339
Sass1281258
PHP14675229
PO File23646110
CSS214461
SVG11013
Ruby1208

PHP code Passed 2 tests

An short overview of 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.47
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%
Functions9
▷ Named functions9100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/icon.png1.23KB0.40KB▼ 67.06%