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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.63 | 43.37 ▲6.73 |
Dashboard /wp-admin | 3.93 ▲0.62 | 49.42 ▲1.32 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 47.37 ▼0.50 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.56 | 92.11 ▼9.22 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 38.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.17 ▼0.56 | 1.84 ▲0.22 | 43.05 ▲2.85 |
Dashboard /wp-admin | 2,192 ▲15 | 5.64 ▲0.00 | 88.37 ▼7.07 | 44.12 ▲1.12 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.01 | 36.25 ▼5.29 | 35.47 ▼3.03 |
Add New Post /wp-admin/post-new.php | 1,525 ▼1 | 21.16 ▼1.99 | 623.01 ▼63.52 | 53.31 ▼7.91 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.15 ▼0.09 | 97.68 ▼13.77 | 44.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 629 | 1,511 | 3,150 |
PO File | 1 | 312 | 745 | 419 |
JavaScript | 1 | 46 | 91 | 280 |
CSS | 1 | 1 | 4 | 117 |
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 code | 0.34 |
Average class complexity | 46.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 417.00 |
Average method complexity | 4.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 152 | |
▷ Static methods | 8 | 5.26% |
▷ Public methods | 85 | 55.92% |
▷ Protected methods | 5 | 3.29% |
▷ Private methods | 62 | 40.79% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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