83% maxslider

Code Review | MaxSlider

WordPress plugin MaxSlider scored83%from 54 tests.

About plugin

  • Plugin page: maxslider
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Nov 4, 2016
  • Latest release: Aug 31, 2023
  • Number of updates: 56
  • Update frequency: every 44.5 days
  • Top authors: anastis (78.57%)cssigniterteam (17.86%)nvourva (5.36%)tsiger (3.57%)

Code review

54 tests

User reviews

12 reviews

Install metrics

8,000+ active /70,740 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.42MB] [CPU: ▼2.25ms] Passed 4 tests

A check of server-side resources used by MaxSlider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4036.90 ▼6.91
Dashboard /wp-admin3.75 ▲0.4446.47 ▼2.15
Posts /wp-admin/edit.php3.80 ▲0.4449.04 ▲6.68
Add New Post /wp-admin/post-new.php7.59 ▲1.7090.93 ▼6.60
Media Library /wp-admin/upload.php3.61 ▲0.3837.71 ▲6.80
MaxSlider /wp-admin/edit.php?post_type=maxslider_slider3.6639.17
Add New /wp-admin/post-new.php?post_type=maxslider_slider3.6948.52

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

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

Browser metrics Passed 4 tests

Checking browser requirements for MaxSlider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.46 ▼0.908.61 ▲6.9140.96 ▼4.07
Dashboard /wp-admin2,219 ▲425.56 ▼0.0287.88 ▲1.4240.69 ▲3.66
Posts /wp-admin/edit.php2,130 ▲271.99 ▼0.0435.23 ▼6.9933.39 ▼5.45
Add New Post /wp-admin/post-new.php6,222 ▲4,68519.00 ▲0.92888.97 ▲290.5853.83 ▼11.44
Media Library /wp-admin/upload.php1,430 ▲274.18 ▼0.1096.42 ▼0.4541.79 ▲0.72
MaxSlider /wp-admin/edit.php?post_type=maxslider_slider1,0881.9730.6429.26
Add New /wp-admin/post-new.php?post_type=maxslider_slider3,7885.04136.24126.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • maxslider_db_version
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/maxslider/uninstall.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maxslider/block/block.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

maxslider/maxslider.php 77% from 13 tests

"MaxSlider" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")
  • Description: The description should be shorter than 140 characters (currently 149 characters long)
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")

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 plugin6,995 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript69572562,525
PHP103965371,882
CSS822181,218
Sass5193721,193
LESS1135150
SVG21014
Ruby1208
XML1005

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity28.33
▷ Minimum class complexity2.00
▷ Maximum class complexity104.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods88
▷ Static methods3337.50%
▷ Public methods8090.91%
▷ Protected methods89.09%
▷ 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/vendor/alpha-color-picker/transparency-grid.png2.58KB2.80KB0.00%
assets/images/vc_icon.png0.86KB0.65KB▼ 24.66%