84% cms2cms-connector

Code Review | CMS2CMS Connector

WordPress plugin CMS2CMS Connector scored 84% from 54 tests.

About plugin

  • Plugin page: cms2cms-connector
  • Plugin version: 3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.9.3
  • WordPress version: 6.3.1
  • First release: Aug 7, 2017
  • Latest release: May 9, 2022
  • Number of updates: 36
  • Update frequency: every 48.3 days
  • Top authors: cms2cms (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

1,000+ active / 33,527 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.06MB] [CPU: ▼8.89ms] Passed 4 tests

Analyzing server-side resources used by CMS2CMS Connector
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.02 ▼3.90
Dashboard /wp-admin3.37 ▲0.0651.06 ▼5.26
Posts /wp-admin/edit.php3.49 ▲0.1350.40 ▼20.54
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.22 ▼5.84
Media Library /wp-admin/upload.php3.30 ▲0.0642.48 ▲0.61
CMS2CMS Connector /wp-admin/tools.php?page=cms2cms-connector3.3436.79

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: 1 new table, 6 new options
New tables
wp_cms2cms_connector_options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for CMS2CMS Connector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲2913.57 ▼0.842.14 ▲0.2944.99 ▼4.32
Dashboard /wp-admin2,210 ▲44.82 ▼0.01112.85 ▲5.1145.15 ▲0.31
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0038.45 ▲5.3434.54 ▼1.48
Add New Post /wp-admin/post-new.php1,537 ▲423.01 ▼0.43725.96 ▼10.1652.97 ▼6.69
Media Library /wp-admin/upload.php1,392 ▲44.17 ▲0.02106.79 ▼2.9845.42 ▼1.93
CMS2CMS Connector /wp-admin/tools.php?page=cms2cms-connector1,2282.4050.5584.14

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cms2cms-connector/cms2cms-connector.php:45

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed:
  • Tags: Too many tags (27 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

cms2cms-connector/cms2cms-connector.php Passed 13 tests

The main file in "CMS2CMS Connector" v. 3.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
85 characters long description:
Universal WordPress migration plugin for super-fast and fully automated website move.

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
There were no executable files found in this plugin48,956 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
CSS178,38415136,296
JavaScript83,5311,64411,960
PHP5108182700

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity11.50
▷ Minimum class complexity9.00
▷ Maximum class complexity14.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods4197.62%
▷ Protected methods12.38%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
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
9 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/img/cms2cms-logo.png12.15KB5.83KB▼ 51.97%
includes/img/cms2cms-steps-icons-new.png5.78KB2.90KB▼ 49.92%
includes/img/cms2cms-packages.png26.59KB8.28KB▼ 68.85%
includes/img/package.png6.86KB6.01KB▼ 12.48%
includes/img/cms2cms-steps-icons.png5.81KB4.46KB▼ 23.34%