78% mimo-social

Code Review | Mimo Social

WordPress plugin Mimo Social scored78%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: 6.3.1
  • 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 /588 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼9.36ms] Passed 4 tests

An overview of server-side resources used by Mimo Social
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2126.00 ▼12.87
Dashboard /wp-admin3.52 ▲0.1749.05 ▼6.39
Posts /wp-admin/edit.php3.63 ▲0.2846.07 ▼8.27
Add New Post /wp-admin/post-new.php6.12 ▲0.2390.30 ▼9.90
Media Library /wp-admin/upload.php3.44 ▲0.2135.59 ▼1.38
Mimo Social /wp-admin/options-general.php?page=mimo-social-settings4.0636.29

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 187 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Mimo Social: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12213.53 ▼0.898.55 ▲6.9242.71 ▼2.41
Dashboard /wp-admin2,203 ▲265.61 ▼0.0694.84 ▲7.6143.07 ▼2.65
Posts /wp-admin/edit.php2,105 ▲52.03 ▲0.0133.28 ▼1.8334.57 ▼0.59
Add New Post /wp-admin/post-new.php1,533 ▲623.18 ▼0.11621.10 ▼73.5349.87 ▼12.43
Media Library /wp-admin/upload.php1,408 ▲84.17 ▲0.0395.06 ▼8.0241.43 ▼2.07
Mimo Social /wp-admin/options-general.php?page=mimo-social-settings1,2842.2225.9029.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with 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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === mimo-social === )
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
The official readme.txt might help

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

The main PHP file in "Mimo Social" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected29,450 lines of code in 143 files:
LanguageFilesBlank linesComment linesLines of code
PO File948,87311,78920,306
CSS51,0181,0303,915
PHP271,2392,5103,319
Sass11168231,116
JavaScript5178164703
Markdown139091

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
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
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods230
▷ Static methods2510.87%
▷ Public methods21392.61%
▷ Protected methods73.04%
▷ Private methods104.35%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/CMB2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
includes/CMB2/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
includes/CMB2/images/ico-delete.png0.70KB0.72KB0.00%
includes/CMB2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
includes/CMB2/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%