78% fg-joomla-to-wordpress

Code Review | FG Joomla to WordPress

WordPress plugin FG Joomla to WordPress scored78%from 54 tests.

About plugin

  • Plugin page: fg-joomla-to-word...
  • Plugin version: 4.15.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 13, 2012
  • Latest release: Nov 15, 2023
  • Number of updates: 609
  • Update frequency: every 7.1 days
  • Top authors: Kerfred (100%)

Code review

54 tests

User reviews

314 reviews

Install metrics

10,000+ active /822,955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.47ms] Passed 4 tests

Server-side resources used by FG Joomla to WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1137.54 ▼3.39
Dashboard /wp-admin3.41 ▲0.1046.16 ▼3.22
Posts /wp-admin/edit.php3.46 ▲0.1049.20 ▲2.02
Add New Post /wp-admin/post-new.php5.99 ▲0.1095.74 ▲8.31
Media Library /wp-admin/upload.php3.33 ▲0.1033.06 ▼1.29

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for FG Joomla to WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.72 ▲0.581.85 ▲0.1637.98 ▼8.68
Dashboard /wp-admin2,195 ▲155.62 ▼0.0195.03 ▼7.3740.00 ▼5.11
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0439.86 ▲0.9340.12 ▲4.43
Add New Post /wp-admin/post-new.php1,526 ▼023.30 ▲0.13679.94 ▲24.2252.13 ▼10.01
Media Library /wp-admin/upload.php1,397 ▼34.15 ▼0.0696.11 ▲0.3243.20 ▲1.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/fg-joomla-to-wordpress/admin/partials/progress-bar.php
    • > /wp-content/plugins/fg-joomla-to-wordpress/admin/partials/help-options.tpl.php
  • 22× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/fg-joomla-to-wordpress/admin/partials/admin-display.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-joomla-to-wordpress/admin/partials/logger.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-joomla-to-wordpress/admin/partials/ftp-settings.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/fg-joomla-to-wordpress/admin/partials/admin-display.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/fg-joomla-to-wordpress/admin/partials/help-instructions.tpl.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-joomla-to-wordpress/admin/partials/extra-features.php:2
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/fg-joomla-to-wordpress/admin/partials/admin-display.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/fg-joomla-to-wordpress/admin/partials/help-options.tpl.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-joomla-to-wordpress/admin/partials/database-info.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'FG_Joomla_to_WordPress_DebugInfo' not found in wp-content/plugins/fg-joomla-to-wordpress/admin/partials/debug-info.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
Please take inspiration from this readme.txt

fg-joomla-to-wordpress/fg-joomla-to-wordpress.php Passed 13 tests

"FG Joomla to WordPress" version 4.15.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
81 characters long description:
A plugin to migrate categories, posts, images and medias from Joomla to WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected9,342 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PO File81,8862,4404,896
PHP367471,9873,965
JavaScript151107360
CSS114121

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity34.60
▷ Minimum class complexity1.00
▷ Maximum class complexity394.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods198
▷ Static methods21.01%
▷ Public methods12663.64%
▷ Protected methods52.53%
▷ Private methods6733.84%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin