Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+312
call_user_func_array() expects parameter 1 to be a valid callback, function 'cyb_activation_redirect' not found or invalid function name
Server metrics [RAM: ▲0.22MB] [CPU: ▼7.02ms] Passed 4 tests
A check of server-side resources used by The Great Firewords of China
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 43.41 ▲2.47 |
Dashboard /wp-admin | 3.55 ▲0.20 | 54.19 ▼14.59 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 51.11 ▲0.93 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 90.15 ▼16.88 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 39.81 ▲3.89 |
Overview /wp-admin/admin.php?page=scws_options | 3.43 | 36.42 |
Active Scans /wp-admin/admin.php?page=scws_active_scan | 3.43 | 32.89 |
File Scan /wp-admin/admin.php?page=scws_file_scan | 3.43 | 32.84 |
Database Scan /wp-admin/admin.php?page=scws_db_scan | 3.43 | 34.86 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
The Great Firewords of China: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.21 ▼1.17 | 1.70 ▼0.04 | 42.16 ▼4.71 |
Dashboard /wp-admin | 2,242 ▲54 | 4.83 ▼0.03 | 99.24 ▼10.50 | 42.46 ▼2.48 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 2.00 ▼0.03 | 36.04 ▼1.38 | 37.17 ▲2.55 |
Add New Post /wp-admin/post-new.php | 1,544 ▲25 | 23.18 ▼0.03 | 664.56 ▼12.08 | 49.52 ▼3.18 |
Media Library /wp-admin/upload.php | 1,424 ▲39 | 4.11 ▼0.10 | 110.56 ▲1.13 | 50.40 ▲3.28 |
Overview /wp-admin/admin.php?page=scws_options | 1,043 | 9.08 | 252.22 | 85.16 |
Active Scans /wp-admin/admin.php?page=scws_active_scan | 1,045 | 8.94 | 243.78 | 48.53 |
File Scan /wp-admin/admin.php?page=scws_file_scan | 1,042 | 8.86 | 215.51 | 63.15 |
Database Scan /wp-admin/admin.php?page=scws_db_scan | 1,043 | 8.94 | 242.44 | 57.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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 no errors were found, this is by no means 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 take a closer look at the following
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sensitive-chinese-words-scanner/include/ui.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sensitive-chinese-words-scanner/include/active-scan.php:154
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sensitive-chinese-words-scanner/ajax/db-scan.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sensitive-chinese-words-scanner/include/editor.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sensitive-chinese-words-scanner/sensitive-chinese-words-scanner.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sensitive-chinese-words-scanner/ajax/file-scan.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sensitive-chinese-words-scanner/ajax/options.php:6
- > 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)
There are user-side issues you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=scws_db_scan
- > Console-api (severe) in unknown
https://app.hubspot.com/embedded-viral-link/forms?lang=en&portalId=4542224&hubs_id=forms-branding-control&hubs_source=wp.com&intent=marketingFreeForms 0:2408 "No CSRF Cookie found."
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=scws_db_scan
- > Console-api (severe) in unknown
https://app.hubspot.com/embedded-viral-link/forms?lang=en&portalId=4542224&hubs_id=forms-branding-control&hubs_source=wp.com&intent=marketingFreeForms 6:2354 "No CSRF Cookie found."
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=scws_db_scan
- > Network (severe)
https://app.hubspot.com/api/login-verify/hub-user-info?early=true&hs_static_app=embedded-viral-link-ui&hs_static_app_version=1.167&clienttimeout=3000 - Failed to load resource: the server responded with a status of 401 ()
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Requires at least: The plugin version is formatted incorrectly
- Screenshots: Please add images for these screenshots: #1 (Overview gfw-3.png), #2 (Database Scan gfw-4.png), #3 (File Scan gfw-1.png), #4 (Active Scan gfw-2.png)
sensitive-chinese-words-scanner/sensitive-chinese-words-scanner.php 85% from 13 tests
The primary PHP file in "The Great Firewords of China" version 1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 310 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,892 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 495 | 288 | 1,264 |
CSS | 1 | 0 | 0 | 306 |
LESS | 1 | 33 | 0 | 205 |
HTML | 2 | 35 | 10 | 96 |
Markdown | 1 | 13 | 0 | 21 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
No PNG images were found in this plugin