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
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.61ms] Passed 4 tests
An overview of server-side resources used by Question Antispam for Comment and Signup
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 34.51 ▼2.51 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.43 ▼4.38 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 43.79 ▼6.18 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 82.25 ▼5.38 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.59 ▲1.46 |
Question Antispam /wp-admin/options-general.php?page=wpmsqas_config | 3.23 | 30.05 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
question_antispam_plugin |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Question Antispam for Comment and Signup
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▲0.06 | 1.59 ▼0.12 | 45.31 ▼2.94 |
Dashboard /wp-admin | 2,202 ▲25 | 5.58 ▼0.09 | 80.78 ▼3.55 | 37.95 ▼2.13 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.98 ▲0.03 | 32.40 ▼7.94 | 31.62 ▼2.97 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 24.00 ▲0.79 | 658.61 ▲27.34 | 49.60 ▲2.40 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.14 ▼0.16 | 93.69 ▼1.60 | 41.30 ▲1.06 |
Question Antispam /wp-admin/options-general.php?page=wpmsqas_config | 860 | 1.99 | 21.85 | 25.35 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- question_antispam_plugin
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wpmsqas_config
- > Notice in wp-content/plugins/question-antispam-for-comment-and-signup/question-antispam-for-comment-and-signup.php+56
Undefined index: comments-spam
- > GET request to /wp-admin/options-general.php?page=wpmsqas_config
- > Notice in wp-content/plugins/question-antispam-for-comment-and-signup/question-antispam-for-comment-and-signup.php+57
Undefined index: comments-ham
- > GET request to /wp-admin/options-general.php?page=wpmsqas_config
- > Notice in wp-content/plugins/question-antispam-for-comment-and-signup/question-antispam-for-comment-and-signup.php+58
Undefined index: signups-spam
- > GET request to /wp-admin/options-general.php?page=wpmsqas_config
- > Notice in wp-content/plugins/question-antispam-for-comment-and-signup/question-antispam-for-comment-and-signup.php+59
Undefined index: signups-ham
- > GET request to /wp-admin/options-general.php?page=wpmsqas_config
- > Notice in wp-content/plugins/question-antispam-for-comment-and-signup/question-antispam-for-comment-and-signup.php+74
Undefined index: count
- > GET request to /wp-admin/options-general.php?page=wpmsqas_config
- > Notice in wp-content/plugins/question-antispam-for-comment-and-signup/question-antispam-for-comment-and-signup.php+162
Undefined index: wpmsqas-submit
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/question-antispam-for-comment-and-signup/question-antispam-for-comment-and-signup.php:86
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== question-antispam-for-comment-and-signup ===
)
question-antispam-for-comment-and-signup/question-antispam-for-comment-and-signup.php Passed 13 tests
The main PHP script in "Question Antispam for Comment and Signup" version 0.1.5 is automatically included on every request by WordPress
112 characters long description:
Question and answer as antispam in signup and comment forms of Wordpress, set by admin, supports Multisite mode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin255 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 81 | 133 | 255 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were 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 | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected