74% bluff-post

Code Review | Bluff Post

WordPress plugin Bluff Post scored74%from 54 tests.

About plugin

  • Plugin page: bluff-post
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.6.0
  • WordPress version: 6.3.1
  • First release: Oct 5, 2016
  • Latest release: Apr 28, 2021
  • Number of updates: 23
  • Update frequency: every 72.6 days
  • Top authors: hideoguchi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,220 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▲1.18MB] [CPU: ▲3.67ms] Passed 4 tests

Server-side resources used by Bluff Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.62 ▲1.1646.89 ▲8.24
Dashboard /wp-admin4.50 ▲1.1949.42 ▲5.14
Posts /wp-admin/edit.php4.55 ▲1.1952.23 ▲4.02
Add New Post /wp-admin/post-new.php7.08 ▲1.19101.56 ▼2.74
Media Library /wp-admin/upload.php4.42 ▲1.1943.88 ▲11.04
Reservation list /wp-admin/admin.php?page=blfpst-send-mail-reserves4.4639.59
Registration recipient /wp-admin/admin.php?page=blfpst-target-register4.5050.66
Outbox /wp-admin/admin.php?page=blfpst-send-mail-histories4.4637.95
All Mails /wp-admin/edit.php?post_type=blfpst_mail4.4743.44
Sending e-mail /wp-admin/admin.php?page=blfpst-send-mail-sending4.4639.96
Recipients /wp-admin/admin.php?page=blfpst-targets4.4138.08
Registration template /wp-admin/admin.php?page=blfpst-mail-template-create4.5041.07
Bluff Post /wp-admin/options-general.php?page=blfpst-target-option4.5839.02
Exclusion recipients /wp-admin/admin.php?page=blfpst-target-exclude-recipient4.4436.05
Failure /wp-admin/admin.php?page=blfpst-send-mail-failures4.4640.45

Server storage [IO: ▲1.57MB] [DB: ▲0.02MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 146 new files
Database: 8 new tables, 11 new options
New tables
wp_blfpst_target_conditionals
wp_blfpst_send_mails
wp_blfpst_recipients
wp_blfpst_mail_froms
wp_blfpst_logs
wp_blfpst_targets
wp_blfpst_mail_templates
wp_blfpst_exclude_recipients
New WordPress options
widget_theysaidso_widget
widget_bluff_subscribe_widget
widget_recent-comments
_blfpst_db_lock
_blfpst_db_version
theysaidso_admin_options
blfpst_options
widget_recent-posts
db_upgraded
_blfpst_plugin_version
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bluff Post
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,967 ▲23213.26 ▼1.114.34 ▲2.6644.09 ▲3.91
Dashboard /wp-admin2,352 ▲1675.82 ▼0.02102.63 ▲0.6838.11 ▼1.27
Posts /wp-admin/edit.php2,241 ▲1522.07 ▲0.0936.93 ▲2.0037.02 ▲2.86
Add New Post /wp-admin/post-new.php1,658 ▲11523.38 ▲4.92643.05 ▲29.4763.12 ▲10.77
Media Library /wp-admin/upload.php1,537 ▲1554.20 ▼0.0398.43 ▼3.0645.03 ▲1.70
Reservation list /wp-admin/admin.php?page=blfpst-send-mail-reserves9441.8426.8051.17
Registration recipient /wp-admin/admin.php?page=blfpst-target-register1,0472.0632.9131.21
Outbox /wp-admin/admin.php?page=blfpst-send-mail-histories9491.8424.9229.44
All Mails /wp-admin/edit.php?post_type=blfpst_mail1,2111.9731.5029.69
Sending e-mail /wp-admin/admin.php?page=blfpst-send-mail-sending9491.8625.0331.99
Recipients /wp-admin/admin.php?page=blfpst-targets9661.8428.0830.66
Registration template /wp-admin/admin.php?page=blfpst-mail-template-create1,4853.8054.5436.89
Bluff Post /wp-admin/options-general.php?page=blfpst-target-option1,6142.2140.9836.89
Exclusion recipients /wp-admin/admin.php?page=blfpst-target-exclude-recipient9801.9831.5432.45
Failure /wp-admin/admin.php?page=blfpst-send-mail-failures9481.9026.4733.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% 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 plugin did not uninstall successfully, leaving 8 tables in the database
    • wp_blfpst_mail_froms
    • wp_blfpst_mail_templates
    • wp_blfpst_target_conditionals
    • wp_blfpst_targets
    • wp_blfpst_recipients
    • wp_blfpst_logs
    • wp_blfpst_exclude_recipients
    • wp_blfpst_send_mails
  • Zombie WordPress options detected upon uninstall: 11 options
    • blfpst_options
    • widget_bluff_subscribe_widget
    • _blfpst_plugin_version
    • _blfpst_db_lock
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • _blfpst_db_version
    • 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
Good news, no errors were detected

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
  • 129× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bluff-post/views/home.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/bluff-post/themes/blfpst-default/single-blfpst_mail.php:2
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/bluff-post/views/send/create.php on line 28
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bluff-post/views/send/create.php on line 25
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/bluff-post/views/target/create.php on line 23
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bluff-post/views/target/create.php on line 19
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bluff-post/views/options/option.php on line 21
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bluff-post/views/send/create.php on line 29
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bluff-post/views/template/templates.php on line 19
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bluff-post/views/target/create.php on line 23

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: A description for screenshot #2 is missing in bluff-post/assets to your readme.txt
Please take inspiration from this readme.txt

bluff-post/bluff-post.php Passed 13 tests

Analyzing the main PHP file in "Bluff Post" version 1.1.1
49 characters long description:
Publish the e-mail magazine plugin for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected17,238 lines of code in 138 files:
LanguageFilesBlank linesComment linesLines of code
PHP622,3033,01610,342
JavaScript641,0226145,161
PO File1379601712
CSS5593577
HTML2022286
JSON400160

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity34.60
▷ Minimum class complexity1.00
▷ Maximum class complexity256.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes35
▷ Abstract classes12.86%
▷ Concrete classes3497.14%
▷ Final classes00.00%
Methods328
▷ Static methods12638.41%
▷ Public methods27483.54%
▷ Protected methods00.00%
▷ Private methods5416.46%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.20MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png150.01KB48.85KB▼ 67.44%
assets/screenshot-1.png59.08KB15.06KB▼ 74.51%