Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.01ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Serveloja
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.42 ▼5.99 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.62 ▼6.19 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.45 ▲3.14 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 81.80 ▼2.17 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.79 ▲2.32 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Serveloja
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.48 ▲0.21 | 1.68 ▼0.28 | 40.41 ▼3.23 |
Dashboard /wp-admin | 2,206 ▲18 | 4.77 ▼1.28 | 97.65 ▼18.82 | 43.46 ▼2.03 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 36.09 ▼3.18 | 34.26 ▲1.40 |
Add New Post /wp-admin/post-new.php | 1,514 ▼14 | 17.69 ▼0.63 | 650.11 ▲41.97 | 50.52 ▲1.01 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.26 ▲0.08 | 95.40 ▼4.92 | 42.01 ▼0.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in woo-serveloja/assets to your readme.txt
- Donate link: Invalid URI ("")
woo-serveloja/woocommerce-serveloja.php 92% from 13 tests
This is the main PHP file of "WooCommerce Serveloja" version 2.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-serveloja.php" instead of "woocommerce-serveloja.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin4,325 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 353 | 222 | 2,258 |
CSS | 4 | 295 | 60 | 1,817 |
JavaScript | 2 | 25 | 13 | 250 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 24 | 41.38% |
▷ Public methods | 27 | 46.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 31 | 53.45% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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
52 PNG files occupy 0.39MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/Bandeiras antigas/amex.png | 9.02KB | 3.71KB | ▼ 58.82% |
assets/images/bgModal.png | 46.69KB | 0.10KB | ▼ 99.78% |
assets/images/logo-checkout.png | 5.59KB | 2.80KB | ▼ 49.87% |
assets/images/hiper.png | 1.25KB | 1.22KB | ▼ 2.43% |
assets/images/home.png | 3.52KB | 2.65KB | ▼ 24.80% |