Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼6.34ms] Passed 4 tests
This is a short check of server-side resources used by Stock Exporter for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 43.24 ▲1.25 |
Dashboard /wp-admin | 3.44 ▲0.13 | 46.75 ▼2.81 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 46.64 ▼2.95 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 85.07 ▼20.85 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.57 ▲3.95 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Stock Exporter for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.26 ▼0.09 | 1.60 ▼0.11 | 43.56 ▼3.54 |
Dashboard /wp-admin | 2,230 ▲53 | 5.58 ▼0.09 | 83.00 ▼8.55 | 85.40 ▲45.94 |
Posts /wp-admin/edit.php | 2,115 ▲18 | 2.07 ▲0.11 | 37.33 ▲3.19 | 33.38 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,572 ▲46 | 23.25 ▼0.58 | 695.50 ▲63.75 | 57.13 ▲6.78 |
Media Library /wp-admin/upload.php | 1,432 ▲29 | 4.19 ▼0.01 | 95.56 ▼3.78 | 72.71 ▲29.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive 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
5 plugin tags: stock, webdados, ecommerce, e-commerce, woocommerce
stock-exporter-for-woocommerce/woocommerce-stock-exporter.php 92% from 13 tests
The principal PHP file in "Stock Exporter for WooCommerce" v. 1.2.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("stock-exporter-for-woocommerce.php" instead of "woocommerce-stock-exporter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin813 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 43 | 143 | 813 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 142.00 |
▷ Minimum class complexity | 142.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 8.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
webdados_invoicexpress_nag/invoicexpress-woocommerce-logo.png | 8.10KB | 7.67KB | ▼ 5.25% |