Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼151.27ms] Passed 4 tests
Server-side resources used by ACF viewer for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 30.07 ▲6.76 |
Dashboard /wp-admin | 3.07 ▲0.01 | 30.42 ▼7.70 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 33.65 ▼6.19 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 70.44 ▼590.15 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 22.89 ▼1.02 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
ACF viewer for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,692 ▲41 | 15.59 ▼0.47 | 6.62 ▲1.33 | 72.82 ▼5.75 |
Dashboard /wp-admin | 2,955 ▲59 | 6.10 ▼0.03 | 113.94 ▼19.19 | 164.13 ▼13.90 |
Posts /wp-admin/edit.php | 2,770 ▲30 | 3.24 ▲0.02 | 64.69 ▲1.99 | 138.56 ▲2.90 |
Add New Post /wp-admin/post-new.php | 3,829 ▲94 | 18.92 ▲0.99 | 512.83 ▼2.56 | 161.51 ▼6.66 |
Media Library /wp-admin/upload.php | 1,777 ▲25 | 5.53 ▲0.01 | 144.79 ▲8.24 | 183.51 ▼4.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: acf woocommerce viewer, product, single, acf, advanced custom fields...
acf-viewer-for-woocommerce/acf-woocommerce-viewer.php 92% from 13 tests
The main file in "ACF viewer for WooCommerce" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-viewer-for-woocommerce.php" instead of "acf-woocommerce-viewer.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
There were no executable files found in this plugin2,119 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 237 | 199 | 1,615 |
CSS | 3 | 23 | 0 | 349 |
JavaScript | 2 | 49 | 12 | 155 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 28 | 87.50% |
▷ Anonymous functions | 4 | 12.50% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/order_arrow.png | 0.75KB | 0.75KB | 0.00% |