89% bp-devolved-authority

Code Review | BP Devolved Authority

WordPress plugin BP Devolved Authority scored89%from 54 tests.

About plugin

  • Plugin page: bp-devolved-autho...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 29, 2019
  • Latest release: Feb 10, 2021
  • Number of updates: 13
  • Update frequency: every 52.6 days
  • Top authors: Venutius (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,003 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by BP Devolved Authority
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.35 ▼3.07
Dashboard /wp-admin3.32 ▼0.0343.47 ▼14.51
Posts /wp-admin/edit.php3.37 ▲0.0147.12 ▲2.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.31 ▲4.00
Media Library /wp-admin/upload.php3.24 ▲0.0133.15 ▼7.49

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for BP Devolved Authority
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.79 ▲1.541.81 ▼0.3142.09 ▼6.25
Dashboard /wp-admin2,209 ▲215.87 ▲1.0098.21 ▼16.9839.04 ▼4.37
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0139.23 ▲3.1235.62 ▲1.84
Add New Post /wp-admin/post-new.php1,533 ▲1922.91 ▲5.46632.51 ▼33.6666.01 ▲12.39
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0797.54 ▼2.6144.18 ▲1.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 75% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is not present
  • Contributors: No valid plugin tags found
  • Requires at least: Invalid version format
  • Donate link: Please fix this invalid url: "paypal.me/GeorgeChaplin"
Please take inspiration from this readme.txt

bp-devolved-authority/bp-devolved-authority-loader.php 92% from 13 tests

The main file in "BP Devolved Authority" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bp-devolved-authority.php" instead of "bp-devolved-authority-loader.php")

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 detected351 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP312839319
JavaScript15532

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods225.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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
PNG images were not found in this plugin