88% mimo-social

Code Review | Mimo Social

WordPress plugin Mimo Social scored 88% from 54 tests.

About plugin

  • Plugin page: mimo-social
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.3-4.7
  • WordPress version: 5.9.2
  • First release: Jul 8, 2016
  • Latest release: Aug 10, 2017
  • Number of updates: 6
  • Update frequency: every 66.3 days
  • Top authors: mimothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 467 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼291.13ms] Passed 4 tests

A check of server-side resources used by Mimo Social
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.1653.84 ▲3.47
Dashboard /wp-admin3.63 ▲0.2233.68 ▲2.15
Posts /wp-admin/edit.php3.85 ▲0.2136.77 ▲1.41
Add New Post /wp-admin/post-new.php7.10 ▲0.1392.50 ▼1,168.68
Media Library /wp-admin/upload.php3.51 ▲0.2225.80 ▲0.59
Mimo Social /wp-admin/options-general.php?page=mimo-social-settings4.1328.85

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 187 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Mimo Social: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,915 ▲15716.61 ▲0.539.45 ▲3.082.34 ▼0.53
Dashboard /wp-admin2,901 ▲436.25 ▲0.05115.42 ▼19.21161.04 ▲3.42
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0164.49 ▼0.49139.57 ▼2.96
Add New Post /wp-admin/post-new.php1,788 ▲3616.94 ▼4.97420.20 ▼37.52157.00 ▼5.64
Media Library /wp-admin/upload.php1,708 ▲105.57 ▲0.07159.02 ▲18.16188.41 ▲6.97
Mimo Social /wp-admin/options-general.php?page=mimo-social-settings1,7172.7457.88152.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mimo-social/public/partials/mimo-social-public-display.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mimo-social/includes/CMB2/bootstrap.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mimo-social/includes/CMB2/init.php:72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mimo-social/admin/partials/mimo-social-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === mimo-social === )
Please take inspiration from this readme.txt

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

The main PHP script in "Mimo Social" version 1.2.0 is automatically included on every request by WordPress
59 characters long description:
Create custom share bar with your favorite social networks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin29,450 lines of code in 143 files:
LanguageFilesBlank linesComment linesLines of code
PO File948,87311,78920,306

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity29.38
▷ Minimum class complexity1.00
▷ Maximum class complexity107.00
Average method complexity3.59
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
▷ Static methods2510.87%
▷ Public methods21392.61%
▷ Protected methods73.04%
▷ Private methods104.35%
▷ Named functions20100.00%
▷ Anonymous functions00.00%
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/CMB2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
includes/CMB2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%