Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.00ms] Passed 4 tests
An overview of server-side resources used by 文章配图
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.99 ▼5.19 |
Dashboard /wp-admin | 3.47 ▲0.17 | 45.84 ▼0.65 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 45.75 ▲2.17 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 92.09 ▼14.95 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 38.62 ▲0.81 |
文章配图 /wp-admin/options-general.php?page=article-with-pictures-setting | 3.37 | 40.34 |
Server storage [IO: ▲0.07MB] [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: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
article_with_pictures_options |
Browser metrics Passed 4 tests
文章配图: 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,829 ▲83 | 13.38 ▼0.97 | 2.13 ▲0.48 | 39.88 ▼1.23 |
Dashboard /wp-admin | 2,210 ▲21 | 5.84 ▼0.09 | 95.79 ▼15.34 | 43.29 ▲2.21 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.14 ▲0.12 | 39.66 ▲1.53 | 39.55 ▲6.10 |
Add New Post /wp-admin/post-new.php | 1,546 ▲24 | 18.59 ▼4.59 | 658.73 ▲17.51 | 55.17 ▼15.04 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.18 ▼0.04 | 100.44 ▲2.22 | 46.27 ▲3.07 |
文章配图 /wp-admin/options-general.php?page=article-with-pictures-setting | 1,248 | 2.02 | 26.31 | 117.14 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: article with pictures
article-with-pictures/article-with-pictures.php Passed 13 tests
"文章配图" version 0.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
132 characters long description:
如果文章没有缩略图,可以通过本插件自动给文章生成缩略图,同时支持在文章内容页显示缩略图。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,331 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 94 | 350 | 1,331 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 22 | 42.31% |
▷ Public methods | 52 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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 images were found in this plugin