Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.27MB] [CPU: ▼2.30ms] Passed 4 tests
Analyzing server-side resources used by OSS Upload
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 49.34 ▼1.01 |
Dashboard /wp-admin | 3.57 ▲0.27 | 46.66 ▲1.73 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 44.84 ▼1.57 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 90.46 ▼6.76 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 34.74 ▲0.14 |
OSS Upload /wp-admin/options-general.php?page=oss-upload | 3.46 | 32.74 |
Server storage [IO: ▲1.71MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
OSS Upload: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.58 ▼0.85 | 1.85 ▼0.10 | 44.44 ▲4.65 |
Dashboard /wp-admin | 2,213 ▲28 | 4.89 ▼0.99 | 102.07 ▲0.47 | 39.88 ▼5.83 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.04 ▲0.03 | 38.86 ▼0.88 | 34.69 ▼3.45 |
Add New Post /wp-admin/post-new.php | 1,536 ▲163 | 23.22 ▲6.45 | 623.31 ▲117.91 | 59.84 ▲13.50 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.25 ▲0.03 | 104.79 ▲5.11 | 45.09 ▲0.74 |
OSS Upload /wp-admin/options-general.php?page=oss-upload | 1,494 | 1.95 | 28.44 | 34.87 |
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 detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oss-upload/oss-upload.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Settings) image required
oss-upload/oss-upload.php Passed 13 tests
The main PHP script in "OSS Upload" version 4.8.9 is automatically included on every request by WordPress
95 characters long description:
Upload with Aliyun OSS, with modified OSS Wrapper and fully native image edit function support.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin5,721 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 435 | 1,274 | 3,496 |
Markdown | 3 | 577 | 0 | 1,609 |
PO File | 2 | 212 | 245 | 488 |
JavaScript | 1 | 23 | 26 | 128 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 49.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 213.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 72.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 153 | |
▷ Static methods | 26 | 16.99% |
▷ Public methods | 141 | 92.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 7.84% |
Functions | 52 | |
▷ Named functions | 51 | 98.08% |
▷ Anonymous functions | 1 | 1.92% |
Constants | 161 | |
▷ Global constants | 70 | 43.48% |
▷ Class constants | 91 | 56.52% |
▷ Public constants | 91 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 1.42MB with 0.89MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 709.72KB | 263.68KB | ▼ 62.85% |
screenshot-1.png | 739.34KB | 274.55KB | ▼ 62.87% |