83% bp-disable-activation-reloaded

Code Review | BP Disable Activation Reloaded

WordPress plugin BP Disable Activation Reloaded scored83%from 54 tests.

About plugin

  • Plugin page: bp-disable-activa...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: BuddyPress 1.7-3.9.2
  • WordPress version: 6.3.1
  • First release: Aug 23, 2013
  • Latest release: Aug 14, 2014
  • Number of updates: 5
  • Update frequency: every 77.2 days
  • Top authors: timersys (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

1,000+ active /23,703 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.28ms] Passed 4 tests

A check of server-side resources used by BP Disable Activation Reloaded
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.56 ▼1.90
Dashboard /wp-admin3.34 ▲0.0451.84 ▼3.88
Posts /wp-admin/edit.php3.46 ▲0.1046.15 ▼2.96
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.16 ▼18.77
Media Library /wp-admin/upload.php3.26 ▲0.0334.94 ▼3.51

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
dar_settings
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for BP Disable Activation Reloaded
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.17 ▼0.181.78 ▼0.2846.15 ▲3.59
Dashboard /wp-admin2,211 ▲375.50 ▼0.1788.98 ▼10.1343.69 ▼4.16
Posts /wp-admin/edit.php2,116 ▲161.99 ▼0.0333.47 ▼3.6634.62 ▼2.34
Add New Post /wp-admin/post-new.php1,541 ▲823.13 ▲0.10652.48 ▲5.9252.00 ▼12.06
Media Library /wp-admin/upload.php1,416 ▲164.19 ▲0.0697.75 ▼6.5542.51 ▼5.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • dar_settings
    • can_compress_scripts

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
Everything seems fine, however this is by no means 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
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bp-disable-activation-reloaded/admin/fields.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bp-disable-activation-reloaded/admin/header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bp-disable-activation-reloaded/admin/sidebar.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 79% from 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
3 plugin tags: buddypress, wpmu, activation

bp-disable-activation-reloaded/bp-disable-activation-loader.php 54% from 13 tests

The entry point to "BP Disable Activation Reloaded" version 1.2.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bp-disable-activation-reloaded.php" instead of "bp-disable-activation-loader.php")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "BuddyPress 1.7")
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected803 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5279219616
JavaScript31810123
CSS10064

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.37
Average class complexity41.50
▷ Minimum class complexity13.00
▷ Maximum class complexity70.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods13.70%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin