84% bp-post-from-anywhere

Code Review | Wbcom Designs - BuddyPress Post from Anywhere

WordPress plugin Wbcom Designs - BuddyPress Post from Anywhere scored84%from 54 tests.

About plugin

  • Plugin page: bp-post-from-anyw...
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.0
  • WordPress version: 6.3.1
  • First release: Nov 1, 2017
  • Latest release: Aug 17, 2023
  • Number of updates: 10
  • Update frequency: every 213.0 days
  • Top authors: wbcomdesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,713 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.59ms] Passed 4 tests

A check of server-side resources used by Wbcom Designs - BuddyPress Post from Anywhere
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.99 ▼8.29
Dashboard /wp-admin3.31 ▲0.0045.34 ▼8.95
Posts /wp-admin/edit.php3.36 ▲0.0045.91 ▼7.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.12 ▼5.49
Media Library /wp-admin/upload.php3.23 ▲0.0036.82 ▲4.62

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Wbcom Designs - BuddyPress Post from Anywhere
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.201.66 ▼0.1637.81 ▼5.73
Dashboard /wp-admin2,203 ▲155.82 ▲0.9198.67 ▼10.6639.64 ▼4.16
Posts /wp-admin/edit.php2,089 ▼31.97 ▼0.0339.28 ▼2.0035.93 ▲4.25
Add New Post /wp-admin/post-new.php1,533 ▼022.93 ▼0.33656.72 ▼7.9050.87 ▼12.23
Media Library /wp-admin/upload.php1,388 ▼04.26 ▲0.0696.80 ▼9.4443.17 ▼4.88

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bp-post-from-anywhere/admin/class-bp-anywhere-feedback.php:311

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (It is displaying Post Form After adding shortcode in page/posts screenshot-1.png), #2 (It is displaying Post Form After adding widgets screenshot-2.png)
The official readme.txt is a good inspiration

bp-post-from-anywhere/bp-post-from-anywhere.php 92% from 13 tests

The entry point to "Wbcom Designs - BuddyPress Post from Anywhere" version 1.5.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 177 characters long)

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
Everything looks great! No dangerous files found in this plugin3,887 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code

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.34
Average class complexity7.83
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods13.03%
▷ Public methods2781.82%
▷ Protected methods00.00%
▷ Private methods618.18%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
6 PNG files occupy 0.32MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png150.86KB42.90KB▼ 71.56%
public/icons/success.png0.38KB0.32KB▼ 17.39%
admin/images/bp_post_from_anywhere.png2.70KB2.07KB▼ 23.27%
screenshot-2.png171.27KB49.24KB▼ 71.25%