10% 3-in-one-slider

Code Review | 3 in One Slider

WordPress plugin 3 in One Slider scored10%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: 6.3.1
  • 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,986 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > 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.00MB] [CPU: ▼3.01ms] Passed 4 tests

This is a short check of server-side resources used by 3 in One Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.88 ▼4.47
Dashboard /wp-admin3.31 ▲0.0047.23 ▼0.35
Posts /wp-admin/edit.php3.36 ▲0.0051.80 ▲0.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.29 ▼7.34
Media Library /wp-admin/upload.php3.23 ▲0.0037.09 ▲0.75

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for 3 in One Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.30 ▼0.051.54 ▼0.2240.13 ▲2.23
Dashboard /wp-admin2,195 ▲215.48 ▼0.1182.32 ▼9.4339.64 ▼3.36
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0242.23 ▲1.7337.69 ▼1.02
Add New Post /wp-admin/post-new.php1,526 ▼223.84 ▲0.80623.57 ▼39.7448.06 ▼5.85
Media Library /wp-admin/upload.php1,397 ▼04.15 ▼0.0896.57 ▼15.6241.04 ▼6.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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)
Everything seems fine, however 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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
No browser issues were 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:
  • Screenshots: Please add an image for screenshot #1 (Settings Screen)
You can look at the official readme.txt

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

Analyzing the main PHP file in "3 in One Slider" version 1.0.1.1
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 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,588 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32732532,098
PHP16034277
CSS45652213

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.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
screenshot-1.png24.29KB10.64KB▼ 56.22%
css/images/bg_direction_nav.png1.82KB0.79KB▼ 56.38%
screenshot-2.png15.53KB5.77KB▼ 62.86%