Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.69ms] Passed 4 tests
A check of server-side resources used by TextCensor For Articles
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.03 | 44.41 ▲3.43 |
Dashboard /wp-admin | 3.38 ▲0.03 | 50.76 ▲0.80 |
Posts /wp-admin/edit.php | 3.43 ▲0.03 | 50.96 ▲3.63 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.03 | 94.21 ▼16.57 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 37.96 ▲1.58 |
文章内容审核设置 /wp-admin/options-general.php?page=TextCensor_For_Articles | 3.27 | 33.90 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
TextCensorForArticles |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for TextCensor For Articles
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.40 ▼0.36 | 1.84 ▼0.07 | 46.74 ▲2.43 |
Dashboard /wp-admin | 2,199 ▲22 | 5.61 ▼0.06 | 87.21 ▼3.05 | 47.29 ▲3.45 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▲0.02 | 34.84 ▼1.47 | 38.05 ▲3.04 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.06 ▼0.10 | 661.84 ▼11.82 | 58.78 ▲4.45 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.18 ▼0.01 | 95.55 ▼2.02 | 46.11 ▼0.61 |
文章内容审核设置 /wp-admin/options-general.php?page=TextCensor_For_Articles | 847 | 1.99 | 22.79 | 65.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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
Everything seems fine, however this is by no means an exhaustive test
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 fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/textcensor-for-articles/textcensor-for-articles.php:13
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Screenshot #1 (screenshot-1.png) image required
textcensor-for-articles/textcensor-for-articles.php Passed 13 tests
Analyzing the main PHP file in "TextCensor For Articles" version 1.1.2
69 characters long description:
基于百度文本审核技术来提供WordPress文章内容审核。
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 plugin321 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 42 | 100 | 304 |
Markdown | 1 | 16 | 0 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 30.00% |
▷ Protected methods | 3 | 30.00% |
▷ Private methods | 4 | 40.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
1 PNG file occupies 0.19MB with 0.13MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 196.24KB | 60.10KB | ▼ 69.37% |