78% mimo-carousel

Code Review | Mimo Carousel

WordPress plugin Mimo Carousel scored78%from 54 tests.

About plugin

  • Plugin page: mimo-carousel
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.5.2
  • WordPress version: 6.3.1
  • First release: Feb 15, 2016
  • Latest release: Jun 10, 2016
  • Number of updates: 27
  • Update frequency: every 4.4 days
  • Top authors: mimothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,098 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.73MB] [CPU: ▼3.47ms] Passed 4 tests

This is a short check of server-side resources used by Mimo Carousel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.18 ▲0.7246.47 ▲4.39
Dashboard /wp-admin4.05 ▲0.7553.47 ▲0.85
Posts /wp-admin/edit.php4.08 ▲0.7248.27 ▼6.79
Add New Post /wp-admin/post-new.php6.65 ▲0.7688.92 ▼11.94
Media Library /wp-admin/upload.php3.97 ▲0.7444.73 ▲4.00
All Carousels /wp-admin/edit.php?post_type=mm_car_carousel4.0239.14
Add New Carousel /wp-admin/post-new.php?post_type=mm_car_carousel4.3955.71
Mimo Carousel /wp-admin/options-general.php?page=mimo-carousel-settings3.8835.91
Categories /wp-admin/edit-tags.php?taxonomy=mm_car_category&post_type=mm_car_carousel4.1040.39

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Mimo Carousel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲23313.70 ▼0.486.39 ▲4.3343.37 ▼9.99
Dashboard /wp-admin2,264 ▲765.00 ▲0.12105.41 ▼8.8443.75 ▲1.53
Posts /wp-admin/edit.php2,137 ▲452.22 ▲0.2136.22 ▼4.0733.85 ▼2.20
Add New Post /wp-admin/post-new.php1,552 ▼11623.16 ▲0.70691.21 ▲57.2458.04 ▲17.42
Media Library /wp-admin/upload.php1,433 ▲424.30 ▲0.10103.50 ▲7.2241.67 ▼0.84
All Carousels /wp-admin/edit.php?post_type=mm_car_carousel1,1182.1733.0737.89
Add New Carousel /wp-admin/post-new.php?post_type=mm_car_carousel2,8842.7457.6154.99
Mimo Carousel /wp-admin/options-general.php?page=mimo-carousel-settings8881.9832.5631.64
Categories /wp-admin/edit-tags.php?taxonomy=mm_car_category&post_type=mm_car_carousel1,3102.2929.1327.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_mimo_carousel
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mimo-carousel/public/partials/mimo-carousel-public-display.php
    • > /wp-content/plugins/mimo-carousel/admin/partials/mimo-carousel-admin-display.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mimo-carousel/includes/widgets/mimo-widget-carousel.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mimo-carousel/includes/CMB2/bootstrap.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mimo-carousel/admin/views/admin.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mimo-carousel/templates/mimo-carousel-single.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mimo-carousel/templates/single-carousel.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mimo-carousel/includes/CMB2/init.php:72

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 93% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === mimo-carousel === )
  • Tags: You are using too many tags: 65 tag instead of maximum 10
You can look at the official readme.txt

mimo-carousel/mimo-carousel.php Passed 13 tests

This is the main PHP file of "Mimo Carousel" version 1.3.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
Create custom Carousels for your posts and custom taxonomies

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected30,648 lines of code in 155 files:
LanguageFilesBlank linesComment linesLines of code
PO File968,91411,87620,460
CSS61,0691,0374,234
PHP311,3982,7213,888
Sass11168231,116
JavaScript6188164730
Markdown3620196
SVG11013
JSON10011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity26.83
▷ Minimum class complexity1.00
▷ Maximum class complexity107.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods249
▷ Static methods2610.44%
▷ Public methods23493.98%
▷ Protected methods72.81%
▷ Private methods83.21%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/CMB2/images/ico-delete.png0.70KB0.72KB0.00%
includes/CMB2/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
includes/CMB2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
includes/CMB2/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
includes/CMB2/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%