10% mo-slider

Code Review | Mo Slider

WordPress plugin Mo Slider scored10%from 54 tests.

About plugin

  • Plugin page: mo-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Jun 15, 2018
  • Latest release: Nov 19, 2018
  • Number of updates: 4
  • Update frequency: every 39.3 days
  • Top authors: moduet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /636 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/mo-slider/mo-slider.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; mo_slider has a deprecated constructor

Server metrics [RAM: ▼1.72MB] [CPU: ▼57.90ms] Passed 4 tests

An overview of server-side resources used by Mo Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.1810.65 ▼38.99
Dashboard /wp-admin2.29 ▼1.0510.52 ▼56.02
Posts /wp-admin/edit.php2.29 ▼1.069.80 ▼43.37
Add New Post /wp-admin/post-new.php2.29 ▼3.5910.44 ▼93.20
Media Library /wp-admin/upload.php2.29 ▼0.939.89 ▼28.72

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Mo Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲13813.49 ▼1.068.76 ▲6.6643.53 ▼0.16
Dashboard /wp-admin2,198 ▲215.63 ▲0.0091.09 ▲3.5441.50 ▲2.89
Posts /wp-admin/edit.php2,097 ▼62.01 ▼0.0139.48 ▲0.1439.14 ▲1.88
Add New Post /wp-admin/post-new.php1,536 ▲1018.33 ▼4.75605.18 ▼12.3669.39 ▲11.08
Media Library /wp-admin/upload.php1,403 ▲34.21 ▼0.03103.43 ▼4.7645.78 ▲2.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in mo_slider is deprecated since version 4.3.0! Use __construct() instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_mo_slider
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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)
Even though no errors were found, this is by no means an exhaustive test

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
  • 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/mo-slider/mo-slider.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: responsive, bxslider, post slider, slider, wordpresscom

mo-slider/mo-slider.php 92% from 13 tests

The main file in "Mo Slider" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,151 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3847542,114
CSS49134514
Sass2275262
LESS1115152
PHP141188
SVG11013
Ruby1208

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
vendor/bxslider/images/controls.png2.74KB1.42KB▼ 48.29%