10% mybb-cross-postalicious

Code Review | MyBB Cross-Postalicious

WordPress plugin MyBB Cross-Postalicious scored10%from 54 tests.

About plugin

  • Plugin page: mybb-cross-postal...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1.1
  • WordPress version: 6.3.1
  • First release: Dec 19, 2012
  • Latest release: Feb 25, 2015
  • Number of updates: 13
  • Update frequency: every 61.4 days
  • Top authors: mechter (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /3,316 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/mybb-cross-postalicious/mybb-cross-postalicious.php+47
    Function create_function() is deprecated

Server metrics [RAM: ▼1.76MB] [CPU: ▼53.23ms] Passed 4 tests

An overview of server-side resources used by MyBB Cross-Postalicious
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼1.245.63 ▼36.25
Dashboard /wp-admin2.25 ▼1.067.56 ▼44.77
Posts /wp-admin/edit.php2.25 ▼1.117.59 ▼43.60
Add New Post /wp-admin/post-new.php2.25 ▼3.649.42 ▼88.31
Media Library /wp-admin/upload.php2.25 ▼0.986.73 ▼29.40
MyBBXP /wp-admin/options-general.php?page=mybbxp_settings_page2.256.67

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
mybbxp_options
widget_recent-comments
can_compress_scripts
widget_mybbxp_recent_topics_widget

Browser metrics Passed 4 tests

MyBB Cross-Postalicious: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▲0.111.74 ▼0.1240.62 ▼1.02
Dashboard /wp-admin2,202 ▲255.58 ▲0.0388.40 ▼9.5140.42 ▼3.39
Posts /wp-admin/edit.php2,101 ▲11.94 ▼0.0839.23 ▼4.1537.91 ▲0.98
Add New Post /wp-admin/post-new.php6,276 ▲4,74718.68 ▼4.29923.58 ▲250.3356.15 ▼3.15
Media Library /wp-admin/upload.php1,407 ▲74.20 ▲0.05100.08 ▼15.1744.01 ▼8.25
MyBBXP /wp-admin/options-general.php?page=mybbxp_settings_page1,0092.0022.9229.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/mybb-cross-postalicious/mybb-cross-postalicious.php+47
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_mybbxp_recent_topics_widget
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=mybbxp_settings_page
    • > Deprecated in wp-content/plugins/mybb-cross-postalicious/mybb-cross-postalicious.php+47
    Function create_function() is deprecated

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mybb-cross-postalicious/view-response.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mybb-cross-postalicious/mybbxp-recent-topics-widget.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mybb-cross-postalicious/mybbxp-recent-topics-widget.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: forum, mybb, cross, comments, cross-posting...

mybb-cross-postalicious/mybb-cross-postalicious.php Passed 13 tests

"MyBB Cross-Postalicious" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
48 characters long description:
Allows cross-posting between wordpress and MyBB.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected749 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8152188749

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity19.40
▷ Minimum class complexity5.00
▷ Maximum class complexity40.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods59
▷ Static methods11.69%
▷ Public methods5593.22%
▷ Protected methods00.00%
▷ Private methods46.78%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected