10% feenban

Code Review | FeenBan

WordPress plugin FeenBan scored 10% from 54 tests.

About plugin

  • Plugin page: feenban
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.1.1
  • WordPress version: 5.8.1
  • First release: Mar 20, 2015
  • Latest release: Jun 12, 2015
  • Number of updates: 14
  • Update frequency: every 6.1 days
  • Top authors: anothercoffee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 836 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/feenban/acc-feenban.php+37
    Use of undefined constant feenban_enqueuescripts - assumed 'feenban_enqueuescripts' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.81MB] [CPU: ▼192.30ms] Passed 4 tests

A check of server-side resources used by FeenBan
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.82 ▼0.905.09 ▼17.42
Dashboard /wp-admin1.84 ▼1.228.28 ▼34.87
Posts /wp-admin/edit.php1.84 ▼1.275.17 ▼42.98
Add New Post /wp-admin/post-new.php1.84 ▼3.595.78 ▼659.69
Media Library /wp-admin/upload.php1.84 ▼1.165.58 ▼31.66
FeenBan /wp-admin/options-general.php?page=feenban_settings1.846.02

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for FeenBan
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,686 ▲9015.80 ▼0.017.32 ▼0.0652.54 ▲6.25
Dashboard /wp-admin2,975 ▲416.07 ▲0.13143.58 ▼8.32115.04 ▼2.76
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0066.19 ▲1.0489.94 ▼7.76
Add New Post /wp-admin/post-new.php1,686 ▲316.89 ▼1.15393.78 ▲14.63117.63 ▲7.05
Media Library /wp-admin/upload.php1,815 ▲85.01 ▼0.00162.29 ▲12.54120.40 ▼1.43
FeenBan /wp-admin/options-general.php?page=feenban_settings1,0562.0860.6774.13

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
These items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/feenban/acc-feenban.php+37
    Use of undefined constant feenban_enqueuescripts - assumed 'feenban_enqueuescripts' (this will throw an Error in a future version of PHP)

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=feenban_settings
    • > Warning in wp-content/plugins/feenban/acc-feenban.php+37
    Use of undefined constant feenban_enqueuescripts - assumed 'feenban_enqueuescripts' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=feenban_settings
    • > Warning in wp-content/plugins/feenban/acc-feenban.php+52
    Use of undefined constant feenban_comment_text - assumed 'feenban_comment_text' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=feenban_settings
    • > Notice in wp-content/plugins/feenban/acc-feenban.php+307
    Trying to access array offset on value of type bool

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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/feenban/acc-feenban.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/feenban/feenban-comments.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

feenban/acc-feenban.php 92% from 13 tests

The principal PHP file in "FeenBan" v. 0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("feenban.php" instead of "acc-feenban.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin325 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36566321
CSS1004

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected