83% mb-acf-migration

Code Review | MB ACF Migration

WordPress plugin MB ACF Migration scored 83% from 54 tests.

About plugin

  • Plugin page: mb-acf-migration
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 17, 2021
  • Latest release: Jul 5, 2023
  • Number of updates: 7
  • Update frequency: every 107.0 days
  • Top authors: rilwis (100%)Otto42 (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,533 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by MB ACF Migration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.67 ▲5.59
Dashboard /wp-admin3.31 ▲0.0146.00 ▼1.52
Posts /wp-admin/edit.php3.36 ▲0.0042.73 ▼0.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.42 ▼11.84
Media Library /wp-admin/upload.php3.23 ▲0.0035.47 ▲3.64

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for MB ACF Migration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.23 ▼1.324.60 ▲2.8743.57 ▲1.75
Dashboard /wp-admin2,203 ▲125.80 ▲0.9298.04 ▼6.4037.22 ▼3.54
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0333.87 ▼3.0135.08 ▲4.25
Add New Post /wp-admin/post-new.php1,529 ▼623.30 ▲0.13678.43 ▼1.2155.70 ▼7.02
Media Library /wp-admin/upload.php1,382 ▼64.21 ▼0.0197.23 ▼9.3943.94 ▼0.97

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Please fix the following
  • 31× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Riimu\\Kit\\PHPEncoder\\Encoder\\Encoder' not found in wp-content/plugins/mb-acf-migration/vendor/riimu/kit-phpencoder/src/Encoder/IntegerEncoder.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'MetaBox\\ACF\\Processors\\Base' not found in wp-content/plugins/mb-acf-migration/src/Processors/Posts.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Riimu\\Kit\\PHPEncoder\\Encoder\\Encoder' not found in wp-content/plugins/mb-acf-migration/vendor/riimu/kit-phpencoder/src/Encoder/FloatEncoder.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'MetaBox\\ACF\\Processors\\Base' not found in wp-content/plugins/mb-acf-migration/src/Processors/FieldGroups.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'MetaBox\\ACF\\Processors\\Base' not found in wp-content/plugins/mb-acf-migration/src/Processors/Taxonomies.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Riimu\\Kit\\PHPEncoder\\Encoder\\Encoder' not found in wp-content/plugins/mb-acf-migration/vendor/riimu/kit-phpencoder/src/Encoder/ArrayEncoder.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'MBBParser\\RestApi' not found in wp-content/plugins/mb-acf-migration/vendor/meta-box/mbb-parser/mbb-parser.php:14
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/mb-acf-migration/vendor/riimu/kit-phpencoder/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/mb-acf-migration/vendor/riimu/kit-phpencoder/examples/writing.php on line 6
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/mb-acf-migration/vendor/riimu/kit-phpencoder/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/mb-acf-migration/vendor/riimu/kit-phpencoder/examples/export_difference.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/mb-acf-migration/vendor/riimu/kit-phpencoder/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/mb-acf-migration/vendor/riimu/kit-phpencoder/examples/config.php on line 7

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (28 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

mb-acf-migration/mb-acf-migration.php 85% from 13 tests

The main PHP file in "MB ACF Migration" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Git Repository: Please remove the Git repository from this plugin
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

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
Good job! No executable or dangerous file extensions detected4,503 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
PHP568839184,224
JSON100108
Markdown128081
JavaScript115050
XML1132936
CSS1004

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity12.49
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces12
Interfaces1
Traits1
Classes41
▷ Abstract classes12.44%
▷ Concrete classes4097.56%
▷ Final classes00.00%
Methods301
▷ Static methods309.97%
▷ Public methods14046.51%
▷ Protected methods3110.30%
▷ Private methods13043.19%
Functions15
▷ Named functions16.67%
▷ Anonymous functions1493.33%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
PNG images were not found in this plugin