Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼140.68ms] Passed 4 tests
An overview of server-side resources used by WP Spam Question Filter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 35.70 ▲12.11 |
Dashboard /wp-admin | 3.12 ▲0.07 | 34.47 ▼7.84 |
Posts /wp-admin/edit.php | 3.17 ▲0.07 | 39.37 ▲0.09 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 91.13 ▼559.59 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 35.33 ▲4.64 |
Spam Question Filter /wp-admin/options-general.php?page=wp_spam_question_filter_page | 3.04 | 30.33 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
wp_spam_question_filter_prefix |
wp_spam_question_filter_questions |
wp_spam_question_filter_enable |
wp_spam_question_filter_registration |
wp_spam_question_filter_db_version |
wp_spam_question_filter_answers |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Spam Question Filter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲192 | 16.28 ▲0.64 | 12.62 ▲2.11 | 50.13 ▲3.82 |
Dashboard /wp-admin | 2,978 ▲47 | 5.92 ▼0.25 | 137.59 ▼8.31 | 114.45 ▼4.27 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.01 | 64.91 ▼0.67 | 87.38 ▼4.70 |
Add New Post /wp-admin/post-new.php | 2,060 ▲388 | 19.41 ▲0.62 | 381.34 ▲24.10 | 110.19 ▲0.21 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.05 ▲0.00 | 147.76 ▲3.33 | 125.77 ▲5.43 |
Spam Question Filter /wp-admin/options-general.php?page=wp_spam_question_filter_page | 1,266 | 2.08 | 50.59 | 71.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- wp_spam_question_filter_prefix
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-spam-question-filter/wp-spam-question-filter.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: seravo, question, spam, honeypot, filter
wp-spam-question-filter/wp-spam-question-filter.php 85% from 13 tests
The main PHP file in "WP Spam Question Filter" 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:
- Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin324 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 63 | 55 | 257 |
PO File | 1 | 19 | 21 | 52 |
YAML | 1 | 4 | 1 | 12 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
An short overview of 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.37 |
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 | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected