Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼17.12ms] Passed 4 tests
An overview of server-side resources used by BASE Item List
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.85 ▼5.31 |
Dashboard /wp-admin | 3.42 ▲0.08 | 53.61 ▼34.70 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.72 ▼2.03 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 85.71 ▼26.45 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.14 ▲3.05 |
BASE Item List /wp-admin/admin.php?page=base_item_list | 3.31 | 35.06 |
API設定 /wp-admin/admin.php?page=base_item_list_setting | 3.31 | 36.42 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for BASE Item List
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.34 ▼0.03 | 1.67 ▼0.26 | 41.00 ▼4.03 |
Dashboard /wp-admin | 2,225 ▲48 | 5.64 ▲0.04 | 85.79 ▼3.59 | 43.39 ▲4.36 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 1.99 ▼0.04 | 36.71 ▼4.12 | 36.92 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.22 ▲0.30 | 670.23 ▲34.26 | 55.81 ▼3.94 |
Media Library /wp-admin/upload.php | 1,430 ▲27 | 4.16 ▼0.03 | 95.08 ▼12.43 | 47.13 ▲3.20 |
BASE Item List /wp-admin/admin.php?page=base_item_list | 1,109 | 2.03 | 27.08 | 105.57 |
API設定 /wp-admin/admin.php?page=base_item_list_setting | 1,112 | 2.00 | 25.71 | 77.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: base, shortcode, ec
base-item-list/plugin.php 92% from 13 tests
"BASE Item List" version 2.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("base-item-list.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected693 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 113 | 66 | 630 |
PO File | 1 | 10 | 14 | 33 |
CSS | 1 | 0 | 0 | 30 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 10 | 45.45% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 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
1 PNG file occupies 0.53MB with 0.40MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/api-apply.png | 546.44KB | 132.85KB | ▼ 75.69% |