Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼138.82ms] Passed 4 tests
A check of server-side resources used by WP jQuery Spam
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 36.27 ▲10.74 |
Dashboard /wp-admin | 3.07 ▲0.01 | 55.52 ▲10.59 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 44.22 ▼1.36 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 88.02 ▼564.09 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 32.02 ▼0.42 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP jQuery Spam
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.90 ▲0.22 | 12.67 ▲0.17 | 43.62 ▼7.98 |
Dashboard /wp-admin | 2,967 ▲36 | 5.90 ▼0.18 | 146.94 ▼15.55 | 120.36 ▲13.90 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 66.33 ▼2.88 | 88.00 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,683 ▲92 | 18.51 ▼2.08 | 398.97 ▼9.18 | 106.43 ▼6.48 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▼0.01 | 153.32 ▼7.64 | 114.30 ▲5.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-jquery-spam/dynamic.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-jquery-spam/wp-jquery-spam.php:19
- > PHP Notice
Undefined index: id in wp-content/plugins/wp-jquery-spam/dynamic.php on line 2
- > 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 Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: junk, pinglunla, comments, spam, jquery
wp-jquery-spam/wp-jquery-spam.php Passed 13 tests
The main PHP file in "WP jQuery Spam" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
利用jQuer插入评论隐藏域达到防止垃圾评论的目的
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
No dangerous file extensions were detected55 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 0 | 9 | 55 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 3 | |
▷ Named functions | 3 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin