74% fb2wp-integration-tools

Code Review | XX2WP Integration Tools

WordPress plugin XX2WP Integration Tools scored74%from 54 tests.

About plugin

  • Plugin page: fb2wp-integration...
  • Plugin version: 1.9.9
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Jan 6, 2017
  • Latest release: Mar 21, 2023
  • Number of updates: 86
  • Update frequency: every 26.3 days
  • Top authors: mxp (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

70+ active /6,172 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.34MB] [CPU: ▼2.96ms] Passed 4 tests

A check of server-side resources used by XX2WP Integration Tools
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3544.22 ▲1.33
Dashboard /wp-admin3.64 ▲0.3358.84 ▲6.82
Posts /wp-admin/edit.php3.75 ▲0.3950.28 ▲0.86
Add New Post /wp-admin/post-new.php6.24 ▲0.3689.95 ▼16.72
Media Library /wp-admin/upload.php3.56 ▲0.3338.69 ▲2.70
FB2WP Settings /wp-admin/admin.php?page=mxp-fb2wp3.8758.41
Message Settings /wp-admin/admin.php?page=mxp-fb2wp-message3.5338.91
Webhooks Logs /wp-admin/admin.php?page=mxp-fb2wp-post3.5335.49

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: 1 new table, 10 new options
New tables
wp_fb2wp_debug
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
mxp_messenger_msglist
mxp_fb2wp_callback_url
mxp_fb2wp_db_version
db_upgraded
widget_recent-comments
theysaidso_admin_options
mxp_remove_plugin_debug_log

Browser metrics Passed 4 tests

Checking browser requirements for XX2WP Integration Tools
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.10 ▼0.2537.84 ▲35.9543.35 ▼1.81
Dashboard /wp-admin2,226 ▲495.60 ▼0.0798.69 ▲1.9042.93 ▼3.70
Posts /wp-admin/edit.php2,131 ▲312.02 ▲0.0537.05 ▼0.7733.40 ▼2.48
Add New Post /wp-admin/post-new.php1,551 ▲2323.32 ▲0.28649.78 ▼52.9854.42 ▼7.11
Media Library /wp-admin/upload.php1,431 ▲344.17 ▲0.0094.36 ▼9.8841.01 ▼4.81
FB2WP Settings /wp-admin/admin.php?page=mxp-fb2wp1,4901.9629.0536.32
Message Settings /wp-admin/admin.php?page=mxp-fb2wp-message1,0112.2833.9233.81
Webhooks Logs /wp-admin/admin.php?page=mxp-fb2wp-post1,0372.2932.3138.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_fb2wp_debug
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • mxp_fb2wp_db_version
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • mxp_remove_plugin_debug_log
    • theysaidso_admin_options
    • can_compress_scripts
    • mxp_fb2wp_callback_url
    • widget_recent-posts
    • mxp_messenger_msglist

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=mxp-fb2wp-message
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/fb2wp-integration-tools/index.php+555
    base64_decode() expects parameter 1 to be string, array given

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: webhook, fb2wp, mxptw, webhooks, sync...

fb2wp-integration-tools/index.php 85% from 13 tests

"XX2WP Integration Tools" version 1.9.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fb2wp-integration-tools.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 309 characters long)

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
No dangerous file extensions were detected3,141 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP8914012,301
PO File1171209441
JavaScript487384
CSS20512
Markdown1102
HTML1001

PHP code Passed 2 tests

This is a very shot review 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.32
Average class complexity103.33
▷ Minimum class complexity13.00
▷ Maximum class complexity180.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods115
▷ Static methods7464.35%
▷ Public methods10389.57%
▷ Protected methods10.87%
▷ Private methods119.57%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin