Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.34ms] Passed 4 tests
Analyzing server-side resources used by Easy Woocommerce Customizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.72 ▼0.49 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.09 ▼4.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.60 ▼5.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.28 ▼10.91 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.53 ▲2.54 |
Server storage [IO: ▲1.76MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Easy Woocommerce Customizer: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.35 ▼1.20 | 1.77 ▲0.08 | 41.51 ▼8.59 |
Dashboard /wp-admin | 2,209 ▲24 | 4.87 ▼0.07 | 98.86 ▼9.95 | 42.01 ▼0.90 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.04 ▲0.04 | 34.68 ▼5.17 | 31.00 ▼5.79 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.52 ▼4.63 | 682.52 ▲9.19 | 55.36 ▼2.78 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.20 ▼0.02 | 95.63 ▼0.27 | 41.24 ▼7.91 |
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 does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- 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
Everything seems fine, however this is by no means 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function cs_get_option() in wp-content/plugins/easy-woocommerce-customizer/admin-contact.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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, woocommerce filters, woocommerce customize plugin, easy woocommerce customize, woocommerce shop...
easy-woocommerce-customizer/easy-woocommerce-customizer.php Passed 13 tests
The entry point to "Easy Woocommerce Customizer" version 1.0.2 is a PHP file that has certain tags in its header comment area
91 characters long description:
easily customize your woocommerce store with tons of options without writing a single code.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected28,393 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 12,928 |
JavaScript | 8 | 1,068 | 793 | 4,533 |
CSS | 6 | 141 | 40 | 3,992 |
PHP | 51 | 1,360 | 1,115 | 3,595 |
Sass | 5 | 318 | 0 | 1,952 |
SVG | 1 | 0 | 0 | 655 |
PO File | 6 | 261 | 285 | 601 |
Markdown | 2 | 21 | 0 | 137 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 13.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 4.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 2 | 6.06% |
▷ Concrete classes | 31 | 93.94% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 5 | 4.85% |
▷ Public methods | 103 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 75 | |
▷ Named functions | 75 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 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 |
options/assets/images/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
options/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
options/assets/images/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |