78% bw-product-stories

Code Review | BW WP Stories

WordPress plugin BW WP Stories scored78%from 54 tests.

About plugin

  • Plugin page: bw-product-stories
  • Plugin version: 3.1.4
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.0.3
  • WordPress version: 6.3.1
  • First release: Dec 22, 2020
  • Latest release: Nov 8, 2022
  • Number of updates: 6
  • Update frequency: every 114.5 days
  • Top authors: fikojz (100%)Otto42 (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,229 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.16ms] Passed 4 tests

Server-side resources used by BW WP Stories
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1043.17 ▼1.50
Dashboard /wp-admin3.40 ▲0.1053.26 ▲2.95
Posts /wp-admin/edit.php3.52 ▲0.1653.49 ▲2.92
Add New Post /wp-admin/post-new.php5.98 ▲0.1084.10 ▼17.00
Media Library /wp-admin/upload.php3.32 ▲0.1047.39 ▲8.51
Settings /wp-admin/admin.php?page=bw_wpstories2.8715.57
About /wp-admin/admin.php?page=bw_wpstories_about3.2933.97

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for BW WP Stories
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.29 ▼0.422.07 ▲0.3642.85 ▼4.20
Dashboard /wp-admin2,202 ▲315.54 ▼0.1084.00 ▼5.2577.78 ▲32.78
Posts /wp-admin/edit.php2,128 ▲281.99 ▼0.0038.40 ▲2.6736.41 ▲2.90
Add New Post /wp-admin/post-new.php1,698 ▲16821.95 ▼1.51706.82 ▼11.8146.30 ▼12.37
Media Library /wp-admin/upload.php1,422 ▲254.23 ▲0.03105.55 ▼1.7973.01 ▲25.62
Settings /wp-admin/admin.php?page=bw_wpstories1,0052.1324.2227.58
About /wp-admin/admin.php?page=bw_wpstories_about1,40710.57265.9878.09

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% 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)
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=bw_wpstories
    • > Notice in wp-content/plugins/bw-product-stories/product-stories.php+48
    Undefined index: create_test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bw-product-stories/functions.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bw-product-stories/functions.php:65

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: stories, wpstories, instagram, instagram stories on wordpress, blog...

bw-product-stories/product-stories.php 85% from 13 tests

The main PHP script in "BW WP Stories" version 3.1.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bw-product-stories.php" instead of "product-stories.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin643 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP510121551
JavaScript214068
CSS31024

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
4 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/wpstories_icon.png42.90KB15.09KB▼ 64.81%
img/wpstories_icon_30.png2.32KB1.54KB▼ 33.70%
img/wpstories_icon_25.png1.84KB1.38KB▼ 24.95%
img/wpstories_icon_20.png1.34KB1.05KB▼ 21.56%