Benchmarks
Plugin footprint 65% 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: ▼1.93MB] [CPU: ▼56.27ms] Passed 4 tests
A check of server-side resources used by Woo Icon Stock
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 5.20 ▼37.74 |
Dashboard /wp-admin | 2.08 ▼1.26 | 11.54 ▼49.44 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 7.55 ▼46.31 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 5.96 ▼91.58 |
Media Library /wp-admin/upload.php | 2.08 ▼1.14 | 5.48 ▼28.26 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-posts |
tx_ok |
db_upgraded |
theysaidso_admin_options |
icon_woo_stock_1 |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
tx_faible |
tx_rupture |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Woo Icon Stock
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 13.67 ▼0.62 | 4.66 ▲2.95 | 40.22 ▼4.24 |
Dashboard /wp-admin | 2,222 ▲30 | 5.82 ▲0.96 | 99.46 ▼10.89 | 81.48 ▲39.51 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 1.98 ▼0.03 | 39.23 ▼0.77 | 33.76 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 18.47 ▲0.99 | 675.52 ▼33.40 | 58.47 ▲3.80 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.18 ▲0.00 | 97.54 ▼15.99 | 67.35 ▲18.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the icon-pro handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 11 options in the database
- tx_ok
- qt_faible
- can_compress_scripts
- tx_rupture
- theysaidso_admin_options
- db_upgraded
- tx_faible
- icon_woo_stock_1
- widget_theysaidso_widget
- widget_recent-comments
- ...
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/woo-icon-stock/icon_stock.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/woo-icon-stock/icon_admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: woocommerce, e-commerce, shop, products, themes...
woo-icon-stock/icon_stock.php 85% from 13 tests
The principal PHP file in "Woo Icon Stock" v. 2.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 161 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-icon-stock.php" instead of "icon_stock.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected848 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 65 | 35 | 365 |
CSS | 2 | 15 | 13 | 353 |
JavaScript | 1 | 42 | 12 | 77 |
PO File | 1 | 17 | 36 | 53 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/param.png | 2.30KB | 1.45KB | ▼ 37.00% |
css/images/ok.png | 5.83KB | 1.82KB | ▼ 68.78% |
css/images/stock-moyen.png | 1.25KB | 0.44KB | ▼ 64.97% |
css/images/ico-s3.png | 1.09KB | 0.33KB | ▼ 69.49% |
css/images/ico-sto-fai2.png | 1.95KB | 1.35KB | ▼ 30.75% |