10% flairbees-post-word-filter-and-replace

Code Review | FlairBees Post Word Filter & Replace

WordPress plugin FlairBees Post Word Filter & Replace scored10%from 54 tests.

About plugin

  • Plugin page: flairbees-post-wo...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Nov 3, 2021
  • Latest release: Jul 3, 2023
  • Number of updates: 4
  • Update frequency: every 151.7 days
  • Top authors: greatkhanjoy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /302 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.90MB] [CPU: ▼53.89ms] Passed 4 tests

A check of server-side resources used by FlairBees Post Word Filter & Replace
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.18 ▼32.71
Dashboard /wp-admin2.10 ▼1.207.66 ▼44.58
Posts /wp-admin/edit.php2.11 ▼1.256.98 ▼40.43
Add New Post /wp-admin/post-new.php2.10 ▼3.786.53 ▼97.85
Media Library /wp-admin/upload.php2.11 ▼1.126.39 ▼26.06
Words /wp-admin/admin.php?page=flbWordFilter2.115.75
Options /wp-admin/admin.php?page=flb-word-filter-options2.117.18

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

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

Browser metrics Passed 4 tests

Checking browser requirements for FlairBees Post Word Filter & Replace
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲13113.38 ▼1.181.69 ▼0.1644.09 ▼0.69
Dashboard /wp-admin2,305 ▲1205.87 ▲0.01112.93 ▲3.7442.90 ▼2.78
Posts /wp-admin/edit.php2,198 ▲1092.03 ▲0.0035.48 ▼1.4137.24 ▲4.11
Add New Post /wp-admin/post-new.php1,555 ▲3123.38 ▲0.46655.59 ▲71.7060.06 ▲11.94
Media Library /wp-admin/upload.php1,490 ▲1024.22 ▼0.0398.89 ▲3.1043.37 ▲0.36
Words /wp-admin/admin.php?page=flbWordFilter8822.0728.5926.70
Options /wp-admin/admin.php?page=flb-word-filter-options8782.0425.5723.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=flb-word-filter-options
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive 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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (The back-end view screenshot-1.jpg), #2 (The back-end view screenshot-2.jpg)
The official readme.txt might help

flairbees-post-word-filter-and-replace/word-filter.php 85% from 13 tests

The main PHP file in "FlairBees Post Word Filter & Replace" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("flairbees-post-word-filter-and-replace.php" instead of "word-filter.php")
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected129 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13310121
CSS1108

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.45
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin