83% my-bbpress-to-dw-qa-converter

Code Review | My BBpress DW Q&A Converter

WordPress plugin My BBpress DW Q&A Converter scored83%from 54 tests.

About plugin

  • Plugin page: my-bbpress-to-dw-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0+
  • WordPress version: 6.3.1
  • First release: Oct 20, 2016
  • Latest release: Oct 26, 2016
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: thedoge (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,214 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.34ms] Passed 4 tests

Analyzing server-side resources used by My BBpress DW Q&A Converter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.07 ▲0.99
Dashboard /wp-admin3.38 ▲0.0845.58 ▼3.14
Posts /wp-admin/edit.php3.49 ▲0.1442.56 ▼4.53
Add New Post /wp-admin/post-new.php5.98 ▲0.0979.48 ▼6.69
Media Library /wp-admin/upload.php3.30 ▲0.0734.99 ▲2.01
BBpress to DW Q&A /wp-admin/tools.php?page=bbpress-dwqaq-tools3.2730.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for My BBpress DW Q&A Converter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.60 ▲0.411.88 ▲0.1744.52 ▲0.73
Dashboard /wp-admin2,204 ▲275.62 ▼0.0495.55 ▲9.9242.13 ▼1.61
Posts /wp-admin/edit.php2,109 ▲62.02 ▲0.0234.86 ▼4.0634.89 ▼0.44
Add New Post /wp-admin/post-new.php1,534 ▲823.81 ▲0.55663.25 ▲36.3256.94 ▲7.91
Media Library /wp-admin/upload.php1,409 ▲64.25 ▲0.06103.71 ▲8.0645.11 ▲0.16
BBpress to DW Q&A /wp-admin/tools.php?page=bbpress-dwqaq-tools8122.0526.2627.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/my-bbpress-to-dw-qa-converter/my-bbpress-dwqa-converter.php:14

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 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tested up to: Invalid version format
You can take inspiration from this readme.txt

my-bbpress-to-dw-qa-converter/my-bbpress-dwqa-converter.php 85% from 13 tests

"My BBpress DW Q&A Converter" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("my-bbpress-to-dw-qa-converter.php" instead of "my-bbpress-dwqa-converter.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin409 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP111422377
JavaScript13032

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected