Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.96ms] Passed 4 tests
An overview of server-side resources used by Wppao Image
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.27 ▼2.69 |
Dashboard /wp-admin | 3.32 ▼0.03 | 43.78 ▼15.48 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.05 ▼3.73 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.84 ▼1.95 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.53 ▲3.16 |
WP泡图片增强 /wp-admin/admin.php?page=wppaoimage | 3.25 | 31.31 |
插件调试 /wp-admin/admin.php?page=wppaoimage_helper | 3.21 | 28.44 |
Server storage [IO: ▲1.63MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wppao Image
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.19 ▼1.25 | 1.62 ▲0.08 | 39.70 ▼2.25 |
Dashboard /wp-admin | 2,229 ▲41 | 4.93 ▼0.97 | 103.63 ▲3.83 | 75.49 ▲32.93 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.03 ▼0.01 | 38.19 ▲1.01 | 43.20 ▲10.51 |
Add New Post /wp-admin/post-new.php | 1,544 ▲25 | 18.37 ▼4.72 | 643.75 ▲22.75 | 61.25 ▲9.76 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.21 ▲0.01 | 96.29 ▲1.93 | 78.35 ▲37.09 |
WP泡图片增强 /wp-admin/admin.php?page=wppaoimage | 1,396 | 3.69 | 63.86 | 316.72 |
插件调试 /wp-admin/admin.php?page=wppaoimage_helper | 816 | 2.14 | 23.72 | 62.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wppaoimage
- > Notice in wp-content/plugins/wppao-image/module/watermark.php+380
Undefined variable: fonts
SRP 50% 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 trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wppao-image/options/initialization.php:8
- > 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 on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: image, watermark
wppao-image/wppao-image.php Passed 13 tests
The main PHP file in "Wppao Image" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
117 characters long description:
提供网站编辑过程中,必须要使用的一些图片功能,如图片远程本地化,图片水印等等。
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
There were no executable files found in this plugin956 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 106 | 125 | 664 |
CSS | 1 | 29 | 0 | 182 |
JavaScript | 2 | 10 | 2 | 110 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 49.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 6.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.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 | 26 | |
▷ Static methods | 5 | 19.23% |
▷ Public methods | 23 | 88.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 11.54% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imgs/plugin_icon.png | 0.44KB | 0.36KB | ▼ 17.90% |
options/images/qqmail.png | 1.81KB | 1.76KB | ▼ 2.70% |
options/images/qun.png | 1.78KB | 1.74KB | ▼ 2.46% |