Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.52ms] Passed 4 tests
This is a short check of server-side resources used by Bleep Filter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.03 ▼2.07 |
Dashboard /wp-admin | 3.36 ▲0.02 | 47.06 ▼9.50 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 47.81 ▼3.18 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 87.44 ▼19.33 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.12 ▼0.30 |
Filtered Words /wp-admin/edit.php?post_type=bleep_filter_words | 3.33 | 40.58 |
Exception Words /wp-admin/edit.php?post_type=bleep_exception | 3.33 | 38.24 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Bleep Filter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 14.24 ▼0.10 | 1.83 ▲0.06 | 46.11 ▲7.45 |
Dashboard /wp-admin | 2,236 ▲59 | 5.62 ▼0.04 | 87.36 ▼6.00 | 41.99 ▼0.57 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.05 ▲0.03 | 37.01 ▼1.46 | 31.84 ▼5.41 |
Add New Post /wp-admin/post-new.php | 1,563 ▲37 | 23.05 ▲0.15 | 638.27 ▲23.17 | 59.15 ▲11.67 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.15 ▼0.07 | 109.48 ▲10.47 | 43.63 ▼1.85 |
Filter Settings /wp-admin/bleep-settings.php | 26 | 0.42 | 0.07 | 13.94 |
Import /wp-admin/bleep-import.php | 26 | 0.42 | 0.07 | 5.51 |
Filtered Words /wp-admin/edit.php?post_type=bleep_filter_words | 1,110 | 1.99 | 42.07 | 31.10 |
Exception Words /wp-admin/edit.php?post_type=bleep_exception | 1,110 | 2.00 | 39.31 | 34.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'BleepFilter' not found in wp-content/plugins/bleep-filter/wpadmin.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bleep-filter/wpadmin.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'BleepFilter' not found in wp-content/plugins/bleep-filter/phoneticbleepfilter.class.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/bleep-settings.php
- > Network (severe)
wp-admin/bleep-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/bleep-import.php
- > Network (severe)
wp-admin/bleep-import.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: content filter, profanity filter, word filter, phonetic filter, bleep filter...
bleep-filter/bleep_filter.php 85% from 13 tests
The principal PHP file in "Bleep Filter" v. 1.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("bleep-filter.php" instead of "bleep_filter.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)
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
Everything looks great! No dangerous files found in this plugin544 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 125 | 75 | 517 |
CSS | 1 | 8 | 0 | 27 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 29.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected