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.03MB] [CPU: ▼4.38ms] Passed 4 tests
An overview of server-side resources used by Hjyl Comment Spam
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.55 ▲0.71 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.75 ▲0.57 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.28 ▼7.97 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.40 ▼10.83 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.97 ▲3.85 |
HJYL COMMENT SPAM /wp-admin/options-general.php?page=hjyl-comment-spam | 3.22 | 31.31 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Hjyl Comment Spam
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.66 ▼0.72 | 1.92 ▼0.41 | 44.47 ▼3.39 |
Dashboard /wp-admin | 2,213 ▲28 | 5.83 ▼0.08 | 105.21 ▼2.66 | 36.44 ▼3.09 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.00 | 34.96 ▼6.46 | 36.81 ▼3.38 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.09 ▲5.46 | 692.86 ▲70.15 | 55.03 ▲4.28 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.24 ▲0.08 | 97.91 ▼5.02 | 41.55 ▼2.34 |
HJYL COMMENT SPAM /wp-admin/options-general.php?page=hjyl-comment-spam | 846 | 2.04 | 30.58 | 29.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hjyl-comment-spam/hjyl-comment-spam.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== hjyl-comment-spam ===
)
hjyl-comment-spam/hjyl-comment-spam.php Passed 13 tests
The entry point to "Hjyl Comment Spam" version 1.3 is a PHP file that has certain tags in its header comment area
100 characters long description:
A simple Anti Spam for Comment by number or english.非常简单的数字或字母评论验证码。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected194 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 17 | 102 |
PO File | 1 | 186 | 369 | 51 |
CSS | 1 | 1 | 0 | 41 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin