Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.69ms] Passed 4 tests
Analyzing server-side resources used by Food Store - Online Food Delivery & Pickup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 35.75 ▼1.89 |
Dashboard /wp-admin | 3.35 ▲0.00 | 46.45 ▼8.77 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 43.44 ▼4.35 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.16 ▼7.76 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.96 ▲1.53 |
Server storage [IO: ▲3.96MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 319 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Food Store - Online Food Delivery & Pickup
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲50 | 14.33 ▼0.23 | 1.64 ▲0.17 | 39.06 ▼2.37 |
Dashboard /wp-admin | 2,199 ▲22 | 5.55 ▼0.11 | 91.31 ▲4.98 | 41.50 ▲3.21 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.02 ▲0.02 | 36.75 ▼2.09 | 32.61 ▼2.19 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.17 ▲0.15 | 676.47 ▲0.03 | 54.64 ▼0.73 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.11 ▼0.12 | 97.32 ▼9.02 | 42.79 ▼3.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
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)
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: restaurant menu, food ordering, restaurant ordering system, food delivery, restaurant...
food-store/food-store.php Passed 13 tests
"Food Store - Online Food Delivery & Pickup" version 1.4.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
105 characters long description:
Food Store is complete online food ordering platform with all your favourite WooCommerce functionalities.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected47,563 lines of code in 248 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 197 | 9,933 | 19,742 | 39,576 |
JavaScript | 18 | 730 | 428 | 3,817 |
CSS | 25 | 471 | 40 | 3,331 |
PO File | 1 | 169 | 191 | 413 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 4 | 0 | 1 | 169 |
JSON | 1 | 0 | 0 | 27 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 70.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 72 | |
▷ Abstract classes | 3 | 4.17% |
▷ Concrete classes | 69 | 95.83% |
▷ Final classes | 1 | 1.45% |
Methods | 1,448 | |
▷ Static methods | 273 | 18.85% |
▷ Public methods | 1,042 | 71.96% |
▷ Protected methods | 18 | 1.24% |
▷ Private methods | 388 | 26.80% |
Functions | 176 | |
▷ Named functions | 175 | 99.43% |
▷ Anonymous functions | 1 | 0.57% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 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 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/freemius/assets/img/advanced-delivery-pickup.png | 14.33KB | 6.73KB | ▼ 53.01% |
includes/freemius/assets/img/wfs-whatsapp-cart.png | 14.33KB | 6.73KB | ▼ 53.01% |
includes/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
includes/freemius/assets/img/food-store.png | 14.33KB | 6.73KB | ▼ 53.01% |
includes/freemius/assets/img/food-store-tips.png | 14.33KB | 6.73KB | ▼ 53.01% |