84% tcp-user-registration-for-mybb

Code Review | myBB Integration by TheCartPress

WordPress plugin myBB Integration by TheCartPress scored84%from 54 tests.

About plugin

  • Plugin page: tcp-user-registra...
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8.4
  • WordPress version: 6.3.1
  • First release: Oct 6, 2020
  • Latest release: Mar 30, 2022
  • Number of updates: 7
  • Update frequency: every 78.7 days
  • Top authors: tcpteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /746 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼4.62ms] 75% from 4 tests

An overview of server-side resources used by myBB Integration by TheCartPress
Please take the time to fix the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 592.97ms on /wp-admin/admin.php?page=thecartpress)
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1742.05 ▼0.35
Dashboard /wp-admin3.48 ▲0.1852.10 ▼4.70
Posts /wp-admin/edit.php3.59 ▲0.2449.47 ▼3.69
Add New Post /wp-admin/post-new.php6.06 ▲0.1792.57 ▼9.74
Media Library /wp-admin/upload.php3.40 ▲0.1740.69 ▲2.91
myBB Integration /wp-admin/admin.php?page=tcp-mybb-registration-admin3.3737.54
TCP Plugins /wp-admin/admin.php?page=thecartpress3.47592.97

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-comments
tcpmybbregister_mybbemailcontent
tcpmybbregister_cookie_path
theysaidso_admin_options
tcpmybbregister_tableprefix
tcpmybbregister_mybbemailsubject
tcpmybbregister_mybbadminemail
widget_recent-posts
widget_theysaidso_widget
db_upgraded
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for myBB Integration by TheCartPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲5913.31 ▼1.155.46 ▲3.6345.47 ▲0.73
Dashboard /wp-admin2,239 ▲365.88 ▲0.95102.27 ▼4.2574.84 ▲24.66
Posts /wp-admin/edit.php2,129 ▲292.01 ▲0.0135.03 ▼0.7537.83 ▲5.22
Add New Post /wp-admin/post-new.php1,705 ▲17922.28 ▲4.54715.87 ▲85.3875.20 ▼2.62
Media Library /wp-admin/upload.php1,426 ▲264.23 ▲0.01104.12 ▼6.4282.17 ▲33.08
myBB Integration /wp-admin/admin.php?page=tcp-mybb-registration-admin9752.1723.9930.06
TCP Plugins /wp-admin/admin.php?page=thecartpress9492.0233.6737.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=thecartpress
    • > Network (severe)
    wp-content/plugins/tcp-user-registration-for-mybb/assets/css/menu.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=thecartpress
    • > Network (severe)
    wp-content/plugins/tcp-user-registration-for-mybb/assets/images/tcp-icon.svg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: mybb, user, auto, auto register, users...

tcp-user-registration-for-mybb/tcp-user-registration-for-mybb.php Passed 13 tests

"myBB Integration by TheCartPress" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
130 characters long description:
Auto create myBB user when user create account in WordPress, and it will also auto login to myBB whenever user login in WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin862 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2103148862

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity28.50
▷ Minimum class complexity2.00
▷ Maximum class complexity83.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods40
▷ Static methods12.50%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions1173.33%
▷ Anonymous functions426.67%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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