84% best-images-slider

Code Review | Best Images slider

WordPress plugin Best Images slider scored 84% from 54 tests.

About plugin

  • Plugin page: best-images-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Jan 14, 2016
  • Latest release: Jan 18, 2016
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: module.express (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,466 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.64ms] Passed 4 tests

An overview of server-side resources used by Best Images slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1048.56 ▲5.41
Dashboard /wp-admin3.39 ▲0.0844.17 ▼2.91
Posts /wp-admin/edit.php3.44 ▲0.0843.84 ▼6.57
Add New Post /wp-admin/post-new.php5.97 ▲0.0893.22 ▼19.87
Media Library /wp-admin/upload.php3.31 ▲0.0837.73 ▲2.79
Add New /wp-admin/post-new.php?post_type=best_images_slider3.4348.17
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_best_slider-category&post_type=best_images_slider3.3036.70
Gallery showcases /wp-admin/edit.php?post_type=best_images_slider&page=responsive_gallery-submenu-page3.2833.55
All Image /wp-admin/edit.php?post_type=best_images_slider3.3536.27

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Best Images slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲22013.85 ▼0.468.48 ▲6.6640.48 ▼16.16
Dashboard /wp-admin2,244 ▲564.83 ▼0.2698.36 ▼12.7342.54 ▲1.91
Posts /wp-admin/edit.php2,127 ▲381.99 ▼0.0436.91 ▲1.0332.21 ▼0.31
Add New Post /wp-admin/post-new.php1,574 ▲4118.22 ▼4.91625.51 ▲17.6673.29 ▼1.19
Media Library /wp-admin/upload.php1,423 ▲324.24 ▲0.0498.89 ▼10.1041.76 ▼2.93
Add New /wp-admin/post-new.php?post_type=best_images_slider2,3297.62169.7565.40
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_best_slider-category&post_type=best_images_slider1,2772.1331.8529.55
Gallery showcases /wp-admin/edit.php?post_type=best_images_slider&page=responsive_gallery-submenu-page7972.0323.5424.81
All Image /wp-admin/edit.php?post_type=best_images_slider1,1081.9330.9026.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-images-slider/bis_gallery_admin_settings_center.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-images-slider/best-images-slider.php:352
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/best-images-slider/designs/design-1.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Designs Views from admin side), #2 (Catagroies shortcode)
You can look at the official readme.txt

best-images-slider/best-images-slider.php Passed 13 tests

Analyzing the main PHP file in "Best Images slider" version 1.0
38 characters long description:
A simple Responsive Best Images Slider

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,658 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23699381,098
PHP35825314
CSS3461246

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
6 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icons/prev.png3.09KB0.45KB▼ 85.34%
images/prev.png1.06KB0.17KB▼ 84.01%
images/next.png1.06KB0.17KB▼ 84.36%
images/icons/pattern.png6.63KB3.32KB▼ 49.95%
images/icons/pattern2.png10.06KB4.14KB▼ 58.88%