79% fg-spip-to-wp

Code Review | FG SPIP to WordPress

WordPress plugin FG SPIP to WordPress scored79%from 54 tests.

About plugin

  • Plugin page: fg-spip-to-wp
  • Plugin version: 3.21.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2015
  • Latest release: Nov 15, 2023
  • Number of updates: 244
  • Update frequency: every 12.0 days
  • Top authors: Kerfred (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

100+ active /21,212 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.60MB] [CPU: ▼0.53ms] Passed 4 tests

This is a short check of server-side resources used by FG SPIP to WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6343.37 ▲6.73
Dashboard /wp-admin3.93 ▲0.6249.42 ▲1.32
Posts /wp-admin/edit.php3.98 ▲0.6247.37 ▼0.50
Add New Post /wp-admin/post-new.php6.45 ▲0.5692.11 ▼9.22
Media Library /wp-admin/upload.php3.84 ▲0.6138.06 ▲6.27

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for FG SPIP to WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.17 ▼0.561.84 ▲0.2243.05 ▲2.85
Dashboard /wp-admin2,192 ▲155.64 ▲0.0088.37 ▼7.0744.12 ▲1.12
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0136.25 ▼5.2935.47 ▼3.03
Add New Post /wp-admin/post-new.php1,525 ▼121.16 ▼1.99623.01 ▼63.5253.31 ▼7.91
Media Library /wp-admin/upload.php1,400 ▼34.15 ▼0.0997.68 ▼13.7744.07 ▼3.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% 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)
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/fg-spip-to-wp/admin/partials/help-options.tpl.php
    • > /wp-content/plugins/fg-spip-to-wp/admin/partials/progress-bar.php
  • 19× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/fg-spip-to-wp/admin/partials/admin-display.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/fg-spip-to-wp/admin/partials/empty-content.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fg-spip-to-wp/admin/partials/paypal-donate.php:1
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/fg-spip-to-wp/admin/partials/admin-display.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'FG_Spip_to_WordPress_DebugInfo' not found in wp-content/plugins/fg-spip-to-wp/admin/partials/debug-info.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/fg-spip-to-wp/admin/partials/tabs.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-spip-to-wp/admin/partials/logger.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-spip-to-wp/admin/partials/database-info.php:2
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/fg-spip-to-wp/admin/partials/admin-display.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-spip-to-wp/admin/partials/after-migration.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: spip to wordpress migration, converter, migrate spip to wordpress, migrator, wordpress...

fg-spip-to-wp/fg-spip-to-wp.php Passed 13 tests

The main file in "FG SPIP to WordPress" v. 3.21.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
A plugin to migrate categories, articles, posts, images, medias from SPIP to WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,966 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP296291,5113,150
PO File1312745419
JavaScript14691280
CSS114117

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity46.80
▷ Minimum class complexity1.00
▷ Maximum class complexity417.00
Average method complexity4.01
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods152
▷ Static methods85.26%
▷ Public methods8555.92%
▷ Protected methods53.29%
▷ Private methods6240.79%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin