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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.82 ▼0.90 | 5.09 ▼17.42 |
Dashboard /wp-admin | 1.84 ▼1.22 | 8.28 ▼34.87 |
Posts /wp-admin/edit.php | 1.84 ▼1.27 | 5.17 ▼42.98 |
Add New Post /wp-admin/post-new.php | 1.84 ▼3.59 | 5.78 ▼659.69 |
Media Library /wp-admin/upload.php | 1.84 ▼1.16 | 5.58 ▼31.66 |
FeenBan /wp-admin/options-general.php?page=feenban_settings | 1.84 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲90 | 15.80 ▼0.01 | 7.32 ▼0.06 | 52.54 ▲6.25 |
Dashboard /wp-admin | 2,975 ▲41 | 6.07 ▲0.13 | 143.58 ▼8.32 | 115.04 ▼2.76 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.00 | 66.19 ▲1.04 | 89.94 ▼7.76 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 16.89 ▼1.15 | 393.78 ▲14.63 | 117.63 ▲7.05 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.01 ▼0.00 | 162.29 ▲12.54 | 120.40 ▼1.43 |
FeenBan /wp-admin/options-general.php?page=feenban_settings | 1,056 | 2.08 | 60.67 | 74.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 65 | 66 | 321 |
CSS | 1 | 0 | 0 | 4 |
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 code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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