10% 3-in-one-slider

Code Review | 3 in One Slider

WordPress plugin 3 in One Slider scored 10% from 54 tests.

About plugin

  • Plugin page: 3-in-one-slider
  • Plugin version: 1.0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 5.9.2
  • First release: Apr 1, 2014
  • Latest release: Apr 1, 2014
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: cyberkishor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,709 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Parse error in wp-content/plugins/3-in-one-slider/3-in-one-slider.php+171
    syntax error, unexpected '?>', expecting function (T_FUNCTION) or const (T_CONST)

Server metrics [RAM: ▼0.02MB] [CPU: ▼300.32ms] Passed 4 tests

Server-side resources used by 3 in One Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0156.06 ▲4.63
Dashboard /wp-admin3.41 ▲0.0032.94 ▼2.07
Posts /wp-admin/edit.php3.64 ▲0.0038.12 ▲0.95
Add New Post /wp-admin/post-new.php6.89 ▼0.0898.88 ▼1,194.98
Media Library /wp-admin/upload.php3.29 ▼0.0122.84 ▼5.16

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for 3 in One Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1016.21 ▲0.556.03 ▲0.332.36 ▼0.11
Dashboard /wp-admin2,892 ▲316.16 ▼0.02117.86 ▼18.71154.82 ▼8.71
Posts /wp-admin/edit.php2,688 ▼33.24 ▼0.0063.15 ▲0.23140.18 ▼3.67
Add New Post /wp-admin/post-new.php1,661 ▼015.93 ▼1.00424.08 ▲13.18162.25 ▲7.58
Media Library /wp-admin/upload.php1,698 ▼05.51 ▼0.00139.45 ▼3.33185.34 ▼6.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected '?>', expecting function (T_FUNCTION) or const (T_CONST) in wp-content/plugins/3-in-one-slider/3-in-one-slider.php on line 171

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Settings Screen) image not found
The official readme.txt might help

3-in-one-slider/3-in-one-slider.php Passed 13 tests

The primary PHP file in "3 in One Slider" version 1.0.1.1 is used by WordPress to initiate all plugin functionality
62 characters long description:
Slide Show, with multiple choice Like cycle, marque, and click

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,588 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32732532,098
PHP16034277
CSS45652213

PHP code Passed 2 tests

An overview 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.21
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity13.00
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/bg_direction_nav.png1.82KB0.79KB▼ 56.38%
screenshot-2.png15.53KB5.77KB▼ 62.86%
screenshot-1.png24.29KB10.64KB▼ 56.22%