10% mybbsync

Code Review | mybbSync

WordPress plugin mybbSync scored10%from 54 tests.

About plugin

  • Plugin page: mybbsync
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 18, 2014
  • Latest release: Nov 28, 2022
  • Number of updates: 26
  • Update frequency: every 115.2 days
  • Top authors: pctricks.ir (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /2,201 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.

Server metrics [RAM: ▼0.92MB] [CPU: ▼40.00ms] Passed 4 tests

An overview of server-side resources used by mybbSync
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.69 ▼2.72
Dashboard /wp-admin3.03 ▼0.3124.16 ▼41.02
Posts /wp-admin/edit.php3.03 ▼0.3224.23 ▼23.53
Add New Post /wp-admin/post-new.php3.03 ▼2.8524.45 ▼82.09
Media Library /wp-admin/upload.php3.03 ▼0.1925.34 ▼13.35
Mybb Sync /wp-admin/options-general.php?page=mybbsync/mybbSync.php3.0325.04

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 12 new options
New WordPress options
mbsync_tableprefix
mbsync_mybbroot
can_compress_scripts
mbsync_host
widget_recent-posts
theysaidso_admin_options
mbsync_db_password
db_upgraded
widget_theysaidso_widget
widget_recent-comments
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for mybbSync
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.15 ▼1.232.03 ▲0.3642.57 ▼3.01
Dashboard /wp-admin2,210 ▲225.89 ▲0.84100.52 ▼1.9940.17 ▼0.91
Posts /wp-admin/edit.php2,096 ▲71.98 ▼0.0240.02 ▼2.3434.04 ▼4.57
Add New Post /wp-admin/post-new.php1,517 ▼1123.76 ▲5.54683.77 ▲65.8759.34 ▲5.77
Media Library /wp-admin/upload.php1,395 ▲74.14 ▼0.05110.40 ▲12.1847.06 ▲1.97
Mybb Sync /wp-admin/options-general.php?page=mybbsync/mybbSync.php8612.0722.8924.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=mybbsync/mybbSync.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mybbsync/mybbSync.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === mybbsync === )
  • Screenshots: Screenshot #1 (options.png) image not found
The official readme.txt might help

mybbsync/mybbSync.php 85% from 13 tests

"mybbSync" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Name the main plugin file the same as the plugin slug ("mybbsync.php" instead of "mybbSync.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected176 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11216136
PO File1488840

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods10100.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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