68% im-wp-multiblocks-lite

Code Review | IM WP MultiBlocks Lite

WordPress plugin IM WP MultiBlocks Lite scored68%from 54 tests.

About plugin

  • Plugin page: im-wp-multiblocks...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.10
  • WordPress version: 6.3.1
  • First release: May 29, 2017
  • Latest release: Sep 8, 2023
  • Number of updates: 45
  • Update frequency: every 51.0 days
  • Top authors: devimirochnik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,446 total downloads

Benchmarks

Plugin footprint 65% 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.89MB] [CPU: ▼31.56ms] Passed 4 tests

Server-side resources used by IM WP MultiBlocks Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.31 ▼2.35
Dashboard /wp-admin3.05 ▼0.2527.16 ▼23.90
Posts /wp-admin/edit.php3.05 ▼0.3027.21 ▼25.97
Add New Post /wp-admin/post-new.php3.05 ▼2.8326.83 ▼66.37
Media Library /wp-admin/upload.php3.05 ▼0.1824.81 ▼10.00
IM WP MultiBlocks Lite /wp-admin/options-general.php?page=im-wp-multiblocks-lite/im-wp-multiblocks-lite.php3.0524.34

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
im-wp-lite-mb-active
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

IM WP MultiBlocks Lite: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.21 ▼1.161.81 ▲0.0143.29 ▲0.17
Dashboard /wp-admin2,210 ▲195.85 ▲0.99111.73 ▲4.7243.89 ▼2.31
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0435.51 ▼9.9033.32 ▼7.07
Add New Post /wp-admin/post-new.php1,549 ▲3523.37 ▲5.92681.74 ▼22.8455.68 ▼0.37
Media Library /wp-admin/upload.php1,392 ▲14.23 ▼0.00111.65 ▲9.1347.74 ▲1.78
IM WP MultiBlocks Lite /wp-admin/options-general.php?page=im-wp-multiblocks-lite/im-wp-multiblocks-lite.php8852.0526.3041.38

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
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • im-wp-lite-mb-active
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=im-wp-multiblocks-lite/im-wp-multiblocks-lite.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(IM_WP_LITE_MB_DIRincludes/im-wp-lite-mbsettings.class.php): failed to open stream: No such file or directory in wp-content/plugins/im-wp-multiblocks-lite/includes/im-wp-lite-mbadmin.php on line 40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/im-wp-multiblocks-lite/im-wp-multiblocks-lite.php:44
    • > PHP Warning
      require_once(IM_WP_LITE_MB_DIRincludes/im-wp-lite-mbsettings.class.php): failed to open stream: No such file or directory in wp-content/plugins/im-wp-multiblocks-lite/includes/im-wp-lite-mbcore.php on line 40
    • > PHP Fatal error
      require_once(): Failed opening required 'IM_WP_LITE_MB_DIRincludes/im-wp-lite-mbsettings.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/im-wp-multiblocks-lite/includes/im-wp-lite-mbcore.php on line 40
    • > PHP Warning
      Use of undefined constant IM_WP_LITE_MB_DIR - assumed 'IM_WP_LITE_MB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/im-wp-multiblocks-lite/includes/im-wp-lite-mbcore.php on line 40
    • > PHP Warning
      Use of undefined constant IM_WP_LITE_MB_DIR - assumed 'IM_WP_LITE_MB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/im-wp-multiblocks-lite/includes/im-wp-lite-mbadmin.php on line 40
    • > PHP Fatal error
      require_once(): Failed opening required 'IM_WP_LITE_MB_DIRincludes/im-wp-lite-mbsettings.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/im-wp-multiblocks-lite/includes/im-wp-lite-mbadmin.php on line 40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: direct, post, middle, adman, google...

im-wp-multiblocks-lite/im-wp-multiblocks-lite.php Passed 13 tests

"IM WP MultiBlocks Lite" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
44 characters long description:
Lets you insert your ad-code (like AdSense).

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
Success! There were no dangerous files found in this plugin490 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5133240490

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity10.50
▷ Minimum class complexity5.00
▷ Maximum class complexity23.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods945.00%
▷ Protected methods1155.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin