83% buddypress-verified

Code Review | BuddyVerified

WordPress plugin BuddyVerified scored83%from 54 tests.

About plugin

  • Plugin page: buddypress-verified
  • Plugin version: 2.4.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 5, 2010
  • Latest release: Mar 1, 2017
  • Number of updates: 37
  • Update frequency: every 62.4 days
  • Top authors: modemlooper (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

60+ active /31,329 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.03MB] [CPU: ▼2.84ms] Passed 4 tests

Analyzing server-side resources used by BuddyVerified
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.49 ▼2.72
Dashboard /wp-admin3.33 ▲0.0344.80 ▼2.02
Posts /wp-admin/edit.php3.45 ▲0.0948.25 ▼0.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0291.08 ▼5.74
Media Library /wp-admin/upload.php3.26 ▲0.0234.33 ▼0.87

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyVerified
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.551.77 ▼0.0341.38 ▼1.66
Dashboard /wp-admin2,206 ▲155.91 ▲1.04114.26 ▲9.6840.57 ▼8.43
Posts /wp-admin/edit.php2,092 ▼02.04 ▼0.0340.03 ▼5.1536.59 ▼1.85
Add New Post /wp-admin/post-new.php1,533 ▲1423.40 ▲0.28678.17 ▲21.1351.80 ▼1.12
Media Library /wp-admin/upload.php1,385 ▼64.22 ▲0.0195.28 ▼1.8346.59 ▼1.78

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/buddypress-verified/buddyverified.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/buddypress-verified/includes/class-functions.php:154
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-verified/includes/class-admin.php:58

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

buddypress-verified/buddyverified.php 77% from 13 tests

The primary PHP file in "BuddyVerified" version 2.4.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("buddypress-verified.php" instead of "buddyverified.php")
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected491 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3127433439
CSS17037
JavaScript16515

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity6.25
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods27
▷ Static methods518.52%
▷ Public methods2696.30%
▷ Protected methods13.70%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/3.png3.26KB0.60KB▼ 81.62%
images/6.png3.28KB0.56KB▼ 82.92%
images/2.png3.26KB0.60KB▼ 81.59%
images/4.png3.22KB0.60KB▼ 81.37%
images/5.png3.26KB0.60KB▼ 81.63%