10% mimo-masonry

Code Review | Mimo Masonry

WordPress plugin Mimo Masonry scored10%from 54 tests.

About plugin

  • Plugin page: mimo-masonry
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.5.2
  • WordPress version: 6.3.1
  • First release: May 7, 2016
  • Latest release: Jun 4, 2016
  • Number of updates: 6
  • Update frequency: every 5.7 days
  • Top authors: mimothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,134 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/mimo-masonry/mimo-masonry.php+422
    Function create_function() is deprecated

Server metrics [RAM: ▼1.85MB] [CPU: ▼52.38ms] Passed 4 tests

A check of server-side resources used by Mimo Masonry
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.314.99 ▼31.86
Dashboard /wp-admin2.17 ▼1.186.61 ▼57.89
Posts /wp-admin/edit.php2.17 ▼1.196.46 ▼35.08
Add New Post /wp-admin/post-new.php2.17 ▼3.726.15 ▼84.69
Media Library /wp-admin/upload.php2.17 ▼1.066.53 ▼30.77

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Mimo Masonry
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.33 ▼1.021.79 ▲0.0339.50 ▼4.84
Dashboard /wp-admin2,207 ▲165.88 ▲0.99106.31 ▲2.9837.19 ▼6.63
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0339.56 ▲4.4934.75 ▼1.39
Add New Post /wp-admin/post-new.php1,518 ▼117.53 ▼5.54642.75 ▼72.4151.93 ▼10.18
Media Library /wp-admin/upload.php1,386 ▼54.24 ▲0.0795.16 ▼0.9141.56 ▼4.07

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 cannot be uninstalled
    • > Deprecated in wp-content/plugins/mimo-masonry/mimo-masonry.php+422
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_mimo_masonry
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% 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 50% 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/mimo-masonry/views/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/mimo-masonry/views/widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (33 tag instead of maximum 10)
The official readme.txt might help

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

This is the main PHP file of "Mimo Masonry" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
67 characters long description:
Create a loop of posts, pages or whatever Custom Post Type you have

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin792 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PO File1282874

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods211.11%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin