72% bsf-changelog

Code Review | BSF Changelog

WordPress plugin BSF Changelog scored72%from 54 tests.

About plugin

  • Plugin page: bsf-changelog
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 30, 2017
  • Latest release: Aug 30, 2023
  • Number of updates: 15
  • Update frequency: every 144.6 days
  • Top authors: brainstormworg (66.67%)Nikschavan (40%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /4,463 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.14MB] [CPU: ▼5.84ms] Passed 4 tests

An overview of server-side resources used by BSF Changelog
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1537.07 ▼7.25
Dashboard /wp-admin3.43 ▲0.0849.42 ▼13.27
Posts /wp-admin/edit.php3.55 ▲0.1954.08 ▲2.75
Add New Post /wp-admin/post-new.php6.14 ▲0.2690.68 ▼5.05
Media Library /wp-admin/upload.php3.35 ▲0.1239.49 ▲2.20
All Versions /wp-admin/edit.php?post_type=changelog3.4040.18
Add Version /wp-admin/post-new.php?post_type=changelog6.1482.95
Products /wp-admin/edit-tags.php?taxonomy=product&post_type=changelog3.3452.30
Tags /wp-admin/edit-tags.php?taxonomy=changelog_tag&post_type=changelog3.3434.47
Changelog Settings /wp-admin/edit.php?post_type=changelog&page=bsf_changelog_settings3.3232.60

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

BSF Changelog: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.76 ▲0.231.64 ▼0.0340.65 ▼5.45
Dashboard /wp-admin2,236 ▲625.63 ▲0.0884.75 ▼18.2636.60 ▼5.43
Posts /wp-admin/edit.php2,141 ▲382.03 ▲0.0040.81 ▲2.6836.01 ▼0.97
Add New Post /wp-admin/post-new.php1,560 ▲3423.26 ▼0.41617.77 ▼75.4748.68 ▼4.01
Media Library /wp-admin/upload.php1,444 ▲474.22 ▼0.0798.14 ▲1.9345.87 ▲3.22
All Versions /wp-admin/edit.php?post_type=changelog1,1561.9732.2430.68
Add Version /wp-admin/post-new.php?post_type=changelog6,23321.99840.6328.16
Products /wp-admin/edit-tags.php?taxonomy=product&post_type=changelog1,3182.1230.0332.01
Tags /wp-admin/edit-tags.php?taxonomy=changelog_tag&post_type=changelog1,2842.1226.9329.35
Changelog Settings /wp-admin/edit.php?post_type=changelog&page=bsf_changelog_settings9112.0022.0832.14

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=product&post_type=changelog
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 0% from 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
Please fix the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bsf-changelog/classes/class-bsf-changelog-loader.php
    • > /wp-content/plugins/bsf-changelog/bsf-changelog.php
    • > /wp-content/plugins/bsf-changelog/includes/bsf-changelog-options-page.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bsf-changelog/includes/changelog-taxonomy-template.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bsf-changelog/includes/bsf-archive-template.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: products-changelog, wpchangelog, changelog

bsf-changelog/bsf-changelog.php 92% from 13 tests

The principal PHP file in "BSF Changelog" v. 1.0.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 176 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 detected846 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7101207523
CSS2397304
SVG10019

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.50
▷ Minimum class complexity5.00
▷ Maximum class complexity22.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods23
▷ Static methods521.74%
▷ Public methods1982.61%
▷ Protected methods00.00%
▷ Private methods417.39%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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