10% bp-power-seo

Code Review | BuddyPress Power SEO

WordPress plugin BuddyPress Power SEO scored10%from 54 tests.

About plugin

  • Plugin page: bp-power-seo
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.6
  • WordPress version: 6.3.1
  • First release: May 16, 2018
  • Latest release: Jun 20, 2018
  • Number of updates: 7
  • Update frequency: every 5.0 days
  • Top authors: sooskriszta (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /2,534 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/bp-power-seo/bp-power-seo.php+44
    Trying to access array offset on value of type bool

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

A check of server-side resources used by BuddyPress Power SEO
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.57 ▼5.74
Dashboard /wp-admin3.31 ▲0.0144.79 ▼1.94
Posts /wp-admin/edit.php3.37 ▲0.0146.05 ▼0.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.13 ▼24.34
Media Library /wp-admin/upload.php3.24 ▲0.0031.89 ▲0.46

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 12 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
bpp_member_profile
db_upgraded
bpp_member_profile_tabs
bpp_custom_fields
can_compress_scripts
bpp_member_list
bpp_group_list
...

Browser metrics Passed 4 tests

A check of browser resources used by BuddyPress Power SEO
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.23 ▼1.155.11 ▲3.0743.73 ▲1.36
Dashboard /wp-admin2,206 ▲155.86 ▲0.94106.67 ▲3.7241.44 ▼6.01
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0439.84 ▲2.3634.84 ▲0.56
Add New Post /wp-admin/post-new.php1,535 ▲723.31 ▲0.16675.71 ▲38.2855.63 ▲4.29
Media Library /wp-admin/upload.php1,388 ▲64.21 ▼0.0697.77 ▼1.0440.81 ▼2.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 12 options in the database
    • db_upgraded
    • bpp_member_profile
    • bpp_custom_fields
    • bpp_group_profile
    • can_compress_scripts
    • bpp_member_profile_tabs
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • ...

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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bp-power-seo/lib/site.php:116
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bp-power-seo/lib/admin.php:3

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: bp, buddypress search engine optimization, buddypress seo, buddypress, social seo...

bp-power-seo/bp-power-seo.php Passed 13 tests

The primary PHP file in "BuddyPress Power SEO" version 1.2 is used by WordPress to initiate all plugin functionality
94 characters long description:
This plugin enables SEO functionality for your BuddyPress-powered social network or community.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin751 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP310834712
JavaScript16032
CSS1007

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions14
▷ Named functions1285.71%
▷ Anonymous functions214.29%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin