84% mb-toolset-migration

Code Review | MB Toolset Migration

WordPress plugin MB Toolset Migration scored84%from 54 tests.

About plugin

  • Plugin page: mb-toolset-migration
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: May 17, 2022
  • Latest release: Apr 3, 2023
  • Number of updates: 5
  • Update frequency: every 64.4 days
  • Top authors: rilwis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,461 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.93ms] Passed 4 tests

Server-side resources used by MB Toolset Migration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0134.16 ▼6.19
Dashboard /wp-admin3.31 ▲0.0048.92 ▲0.70
Posts /wp-admin/edit.php3.36 ▲0.0047.99 ▲2.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.53 ▼8.40
Media Library /wp-admin/upload.php3.23 ▲0.0031.76 ▼1.84

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by MB Toolset Migration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.131.67 ▼0.1342.43 ▼7.33
Dashboard /wp-admin2,206 ▲214.84 ▼0.08104.07 ▲3.3647.65 ▲6.02
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0634.02 ▼5.2232.79 ▼2.43
Add New Post /wp-admin/post-new.php1,533 ▲1123.40 ▲0.08691.55 ▲34.2762.24 ▲8.91
Media Library /wp-admin/upload.php1,391 ▼04.21 ▼0.0093.83 ▼2.3541.64 ▼2.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 30× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Riimu\\Kit\\PHPEncoder\\Encoder\\Encoder' not found in wp-content/plugins/mb-toolset-migration/vendor/riimu/kit-phpencoder/src/Encoder/BooleanEncoder.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Riimu\\Kit\\PHPEncoder\\Encoder\\Encoder' not found in wp-content/plugins/mb-toolset-migration/vendor/riimu/kit-phpencoder/src/Encoder/FloatEncoder.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Riimu\\Kit\\PHPEncoder\\Encoder\\Encoder' not found in wp-content/plugins/mb-toolset-migration/vendor/riimu/kit-phpencoder/src/Encoder/StringEncoder.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'MetaBox\\TS\\Processors\\Base' not found in wp-content/plugins/mb-toolset-migration/src/Processors/Users.php:4
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/mb-toolset-migration/vendor/riimu/kit-phpencoder/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/mb-toolset-migration/vendor/riimu/kit-phpencoder/examples/config.php on line 7
    • > PHP Fatal error
      Uncaught Error: Interface 'Riimu\\Kit\\PHPEncoder\\Encoder\\Encoder' not found in wp-content/plugins/mb-toolset-migration/vendor/riimu/kit-phpencoder/src/Encoder/GMPEncoder.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'MBBParser\\RestApi' not found in wp-content/plugins/mb-toolset-migration/vendor/meta-box/mbb-parser/mbb-parser.php:14
    • > PHP Warning
      require_once(wp-content/plugins/mb-toolset-migration/vendor/riimu/kit-phpencoder/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/mb-toolset-migration/vendor/riimu/kit-phpencoder/examples/class_resolution.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'MBBParser\\Parsers\\Base' not found in wp-content/plugins/mb-toolset-migration/vendor/meta-box/mbb-parser/src/Parsers/MetaBox.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'MetaBox\\TS\\Processors\\Base' not found in wp-content/plugins/mb-toolset-migration/src/Processors/Relationship.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Tags: There are too many tags (28 tag instead of maximum 10)
Please take inspiration from this readme.txt

mb-toolset-migration/mb-toolset-migration.php 92% from 13 tests

The main file in "MB Toolset Migration" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages/")

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 detected4,016 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
PHP547509073,773
JSON100114
Markdown126078
JavaScript114047
CSS1004

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity11.78
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces12
Interfaces1
Traits1
Classes39
▷ Abstract classes12.56%
▷ Concrete classes3897.44%
▷ Final classes00.00%
Methods277
▷ Static methods3010.83%
▷ Public methods13548.74%
▷ Protected methods269.39%
▷ Private methods11641.88%
Functions14
▷ Named functions17.14%
▷ Anonymous functions1392.86%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin