Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.77ms] Passed 4 tests
Server-side resources used by Omnishop - Mobile shop apps complementing your WooCommerce webshop
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.04 ▼5.39 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.64 ▼3.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 56.04 ▲5.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.33 ▼27.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.59 ▼3.16 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Omnishop - Mobile shop apps complementing your WooCommerce webshop
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▲0.11 | 1.93 ▲0.23 | 43.17 ▲0.44 |
Dashboard /wp-admin | 2,198 ▲17 | 5.61 ▼0.12 | 89.10 ▼16.25 | 40.27 ▼1.25 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.01 | 40.05 ▲0.76 | 35.23 ▲1.40 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.37 ▼0.31 | 686.92 ▼8.02 | 61.24 ▲6.71 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.26 ▼0.05 | 96.64 ▼7.79 | 41.54 ▼6.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/omnishop/public/partials/omnishop-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/omnishop/admin/partials/omnishop-admin-display.php:20
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: ecommerce, app, mobile, mcommerce, e-commerce...
omnishop/omnishop.php Passed 13 tests
The entry point to "Omnishop - Mobile shop apps complementing your WooCommerce webshop" version 1.0.8 is a PHP file that has certain tags in its header comment area
53 characters long description:
Plugin required for your Omnishop mobile applications
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
Good job! No executable or dangerous file extensions detected1,937 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 522 | 821 | 1,726 |
CSS | 2 | 24 | 8 | 117 |
JavaScript | 2 | 20 | 39 | 82 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 21.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 9 | 10.34% |
▷ Public methods | 70 | 80.46% |
▷ Protected methods | 3 | 3.45% |
▷ Private methods | 14 | 16.09% |
Functions | 16 | |
▷ Named functions | 3 | 18.75% |
▷ Anonymous functions | 13 | 81.25% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.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
10 compressed PNG files occupy 0.83MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/sections/newest.png | 103.49KB | 112.10KB | 0.00% |
admin/images/sections/sliderFeatured.png | 68.28KB | 72.63KB | 0.00% |
admin/images/sections/categoriesImageVertical.png | 106.97KB | 114.12KB | 0.00% |
admin/images/sections/banner.png | 63.24KB | 68.06KB | 0.00% |
admin/images/sections/bannerSquare.png | 176.85KB | 195.11KB | 0.00% |