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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.09ms] Passed 4 tests
An overview of server-side resources used by Stock Update for WC
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.52 ▲0.56 |
Dashboard /wp-admin | 3.31 ▲0.01 | 57.77 ▲0.82 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.93 ▲0.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.43 ▼14.48 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.93 ▲4.05 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Stock Update for WC: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 14.74 ▲0.16 | 1.95 ▼0.24 | 47.35 ▼1.14 |
Dashboard /wp-admin | 2,206 ▲18 | 4.88 ▼0.23 | 111.38 ▼5.20 | 82.77 ▲34.55 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 1.99 ▼0.02 | 34.77 ▼0.03 | 33.19 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 22.94 ▲5.42 | 770.78 ▲65.42 | 52.81 ▼0.59 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.16 ▼0.05 | 97.80 ▼10.88 | 69.15 ▲26.12 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
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
Good news, no errors were detected
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 take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/stock-update-for-wc/admin/class.paone_su_admin_model.php:139
- > PHP Fatal error
Uncaught Error: Class 'PaoneSuAdminModel' not found in wp-content/plugins/stock-update-for-wc/admin/class.paone_su_admin.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
stock-update-for-wc/paone-stock-update.php 85% from 13 tests
The primary PHP file in "Stock Update for WC" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stock-update-for-wc.php" instead of "paone-stock-update.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected12,557 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 66 | 2,900 | 890 | 11,580 |
CSS | 4 | 65 | 6 | 522 |
PHP | 5 | 80 | 130 | 455 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 7.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 71.43% |
▷ Protected methods | 2 | 28.57% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to 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 |
assets/images/delete-icon.png | 1.27KB | 1.39KB | 0.00% |
images/icon.png | 0.71KB | 0.52KB | ▼ 26.47% |
assets/images/add-icon.png | 1.48KB | 1.57KB | 0.00% |