84% wpmktgengine-extension-buddypress

Code Review | BuddyPress - WPMktgEngine | Genoo Extension

WordPress plugin BuddyPress - WPMktgEngine | Genoo Extension scored84%from 54 tests.

About plugin

  • Plugin page: wpmktgengine-exte...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.8.2
  • WordPress version: 6.3.1
  • First release: Apr 19, 2016
  • Latest release: Nov 25, 2021
  • Number of updates: 13
  • Update frequency: every 160.5 days
  • Top authors: Genoo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /879 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼2.18ms] Passed 4 tests

An overview of server-side resources used by BuddyPress - WPMktgEngine | Genoo Extension
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.11 ▼0.88
Dashboard /wp-admin3.31 ▼0.0447.75 ▼11.20
Posts /wp-admin/edit.php3.36 ▲0.0049.20 ▲4.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.47 ▲12.21
Media Library /wp-admin/upload.php3.23 ▲0.0033.14 ▼1.57

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for BuddyPress - WPMktgEngine | Genoo Extension
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.371.74 ▲0.0043.75 ▲3.75
Dashboard /wp-admin2,209 ▲215.85 ▼0.0598.36 ▼28.9137.72 ▼11.95
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0341.16 ▲1.1134.31 ▲0.92
Add New Post /wp-admin/post-new.php1,542 ▲922.86 ▼0.26619.24 ▼74.3159.43 ▼5.02
Media Library /wp-admin/upload.php1,388 ▼34.17 ▲0.0894.60 ▼3.6043.53 ▼1.91

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wpmktgengine-extension-buddypress/wpmktgengine-buddypress.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: marketing automation, email marketing, lead capture forms

wpmktgengine-extension-buddypress/wpmktgengine-buddypress.php 92% from 13 tests

The principal PHP file in "BuddyPress - WPMktgEngine | Genoo Extension" v. 1.0.8 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpmktgengine-extension-buddypress.php" instead of "wpmktgengine-buddypress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin111 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12580111

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions112.50%
▷ Anonymous functions787.50%
Constants0
▷ Global constants00.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
No PNG files were detected