89% bp-xml-sitemap-generator-by-shift1

Code Review | BP XML Sitemap Generator for Buddypress by SHIFT1

WordPress plugin BP XML Sitemap Generator for Buddypress by SHIFT1 scored89%from 54 tests.

About plugin

  • Plugin page: bp-xml-sitemap-ge...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2019
  • Latest release: Feb 24, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: dconsorte (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /797 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by BP XML Sitemap Generator for Buddypress by SHIFT1
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.72 ▼1.49
Dashboard /wp-admin3.31 ▲0.0146.78 ▲0.31
Posts /wp-admin/edit.php3.36 ▲0.0147.42 ▲1.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.75 ▼9.96
Media Library /wp-admin/upload.php3.23 ▲0.0134.13 ▲0.71

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for BP XML Sitemap Generator for Buddypress by SHIFT1
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.35 ▼1.021.60 ▼0.3740.45 ▼12.24
Dashboard /wp-admin2,203 ▲144.83 ▼0.27105.90 ▼13.8141.54 ▼0.73
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0639.25 ▲1.6333.46 ▼0.97
Add New Post /wp-admin/post-new.php1,520 ▼1323.11 ▼0.19690.87 ▲11.6058.35 ▲13.42
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.0598.92 ▲5.1942.60 ▲1.84

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: site map, buddypress, group, member, user...

bp-xml-sitemap-generator-by-shift1/bp-sitemap-shiftone.php 85% from 13 tests

This is the main PHP file of "BP XML Sitemap Generator for Buddypress by SHIFT1" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bp-xml-sitemap-generator-by-shift1.php" instead of "bp-sitemap-shiftone.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)

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
Good job! No executable or dangerous file extensions detected467 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP716082467

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity15.00
▷ Minimum class complexity7.00
▷ Maximum class complexity23.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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