Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼140.12ms] Passed 4 tests
This is a short check of server-side resources used by DevVN Local Store
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▲0.28 | 36.32 ▲12.58 |
Dashboard /wp-admin | 3.22 ▲0.17 | 45.78 ▲1.40 |
Posts /wp-admin/edit.php | 3.33 ▲0.23 | 45.93 ▲0.85 |
Add New Post /wp-admin/post-new.php | 5.59 ▲0.15 | 91.04 ▼566.06 |
Media Library /wp-admin/upload.php | 3.17 ▲0.16 | 37.91 ▲3.33 |
Local Address /wp-admin/edit-tags.php?taxonomy=local_category&post_type=local-store | 3.16 | 34.11 |
Add New /wp-admin/post-new.php?post_type=local-store | 3.28 | 60.86 |
Settings /wp-admin/edit.php?post_type=local-store&page=devvnls_settings | 3.18 | 39.37 |
All Stores /wp-admin/edit.php?post_type=local-store | 3.21 | 32.14 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for DevVN Local Store
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,720 ▲124 | 15.80 ▲0.24 | 8.69 ▲0.00 | 46.99 ▲1.83 |
Dashboard /wp-admin | 3,008 ▲77 | 6.01 ▼0.09 | 153.10 ▲6.23 | 113.30 ▼1.15 |
Posts /wp-admin/edit.php | 2,780 ▲41 | 2.70 ▲0.00 | 67.71 ▲3.56 | 85.83 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,709 ▲26 | 18.31 ▼0.01 | 376.52 ▲12.59 | 111.04 ▲2.36 |
Media Library /wp-admin/upload.php | 1,851 ▲38 | 5.02 ▲0.02 | 151.77 ▲5.13 | 117.42 ▲6.95 |
Local Address /wp-admin/edit-tags.php?taxonomy=local_category&post_type=local-store | 1,777 | 2.50 | 62.05 | 74.67 |
Add New /wp-admin/post-new.php?post_type=local-store | 3,981 | 12.67 | 307.27 | 242.29 |
Settings /wp-admin/edit.php?post_type=local-store&page=devvnls_settings | 1,705 | 4.76 | 89.77 | 78.98 |
All Stores /wp-admin/edit.php?post_type=local-store | 1,491 | 2.83 | 75.69 | 61.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 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
Please take a closer look at the following
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/devvn-local-store/inc/dvls-shortcode.php
- > /wp-content/plugins/devvn-local-store/inc/dvls-metabox.php
- > /wp-content/plugins/devvn-local-store/devvn-local-store.php
- > /wp-content/plugins/devvn-local-store/inc/dvls-optionpage.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=local-store
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?key&libraries=places&ver=1.0.8 82:375 "You are using this API without a key. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors"
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=local-store
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught Qe: Map: Expected mapDiv of type HTMLElement but was passed null.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Store infor), #2 (Search and view stores), #3 (Admin area), #4 (Setting area)
devvn-local-store/devvn-local-store.php Passed 13 tests
This is the main PHP file of "DevVN Local Store" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
27 characters long description:
Find a Local Store by DevVN
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,021 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 78 | 36 | 825 |
CSS | 2 | 25 | 0 | 511 |
JavaScript | 2 | 24 | 27 | 450 |
PO File | 1 | 98 | 98 | 223 |
XML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 94.00 |
▷ Minimum class complexity | 94.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 1 | 3.03% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.59MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 293.36KB | 88.57KB | ▼ 69.81% |
screenshot-3.png | 149.77KB | 44.33KB | ▼ 70.40% |
assets/images/red.png | 1.01KB | 0.89KB | ▼ 12.19% |
assets/images/close-btn.png | 0.78KB | 0.80KB | 0.00% |
screenshot-1.png | 104.99KB | 37.20KB | ▼ 64.57% |