94% automatorwp-buddypress-integration

Code Review | AutomatorWP - BuddyPress integration

WordPress plugin AutomatorWP - BuddyPress integration scored 94% from 54 tests.

About plugin

  • Plugin page: automatorwp-buddy...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: Apr 4, 2020
  • Latest release: Aug 4, 2021
  • Number of updates: 23
  • Update frequency: every 21.2 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,833 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼140.60ms] Passed 4 tests

Analyzing server-side resources used by AutomatorWP - BuddyPress integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1435.27 ▲11.69
Dashboard /wp-admin3.09 ▲0.0347.92 ▲4.42
Posts /wp-admin/edit.php3.14 ▲0.0348.52 ▲4.27
Add New Post /wp-admin/post-new.php5.45 ▲0.0289.16 ▼568.00
Media Library /wp-admin/upload.php3.03 ▲0.0232.53 ▼3.09

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for AutomatorWP - BuddyPress integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲11115.96 ▼0.088.74 ▼2.7549.42 ▲0.53
Dashboard /wp-admin3,001 ▲675.93 ▼0.06145.27 ▲7.58112.14 ▼3.90
Posts /wp-admin/edit.php2,770 ▲312.73 ▲0.0168.89 ▲3.4794.11 ▲6.59
Add New Post /wp-admin/post-new.php1,887 ▲21519.09 ▲0.26368.22 ▼10.08108.71 ▲2.74
Media Library /wp-admin/upload.php1,836 ▲295.05 ▲0.02149.19 ▼9.14124.03 ▲3.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

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 no errors were found, 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatorwp-buddypress-integration/automatorwp-buddypress.php:258

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: automation, topic, automatorwp, automator, buddypress...

automatorwp-buddypress-integration/automatorwp-buddypress.php 92% from 13 tests

The entry point to "AutomatorWP - BuddyPress integration" version 1.1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("automatorwp-buddypress-integration.php" instead of "automatorwp-buddypress.php")

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
Good job! No executable or dangerous file extensions detected688 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP13210466594
SVG11194

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity3.20
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods31
▷ Static methods13.23%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG images were found in this plugin