Benchmarks
Plugin footprint 83% from 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.07MB] [CPU: ▲0.10ms] Passed 4 tests
An overview of server-side resources used by Vendor City
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 48.77 ▲9.76 |
Dashboard /wp-admin | 3.37 ▲0.07 | 54.58 ▲1.78 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 57.64 ▲4.42 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 88.44 ▼14.11 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 44.58 ▲8.32 |
Add New /wp-admin/post-new.php?post_type=vendor | 3.31 | 50.88 |
City /wp-admin/edit-tags.php?taxonomy=city&post_type=vendor | 3.29 | 42.05 |
All Vendors /wp-admin/edit.php?post_type=vendor | 3.32 | 43.36 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Vendor City
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.18 ▼1.46 | 1.83 ▼0.10 | 44.40 ▲1.42 |
Dashboard /wp-admin | 2,234 ▲43 | 5.81 ▼0.07 | 101.54 ▲1.51 | 41.76 ▼2.37 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 1.97 ▼0.08 | 36.27 ▼4.33 | 33.18 ▼4.79 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 23.36 ▲0.24 | 647.89 ▲31.53 | 55.11 ▲0.93 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.22 ▼0.01 | 104.05 ▲4.48 | 49.91 ▲6.02 |
Add New /wp-admin/post-new.php?post_type=vendor | 1,604 | 2.58 | 57.37 | 53.91 |
City /wp-admin/edit-tags.php?taxonomy=city&post_type=vendor | 1,290 | 2.13 | 26.60 | 28.67 |
All Vendors /wp-admin/edit.php?post_type=vendor | 1,101 | 1.97 | 33.76 | 29.98 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=vendor
- > Notice in wp-content/plugins/vendor-city/vendor-city.php+83
Undefined index: vendorname
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vendor
- > Notice in wp-content/plugins/vendor-city/vendor-city.php+98
Trying to access array offset on value of type null
- > GET request to /wp-admin/post-new.php?post_type=vendor
- > Notice in wp-content/plugins/vendor-city/vendor-city.php+86
Undefined index: establishment_year
- > GET request to /wp-admin/post-new.php?post_type=vendor
- > Notice in wp-content/plugins/vendor-city/vendor-city.php+89
Undefined index: street_name
- > GET request to /wp-admin/post-new.php?post_type=vendor
- > Notice in wp-content/plugins/vendor-city/vendor-city.php+92
Undefined index: area_name
- > GET request to /wp-admin/post-new.php?post_type=vendor
- > Notice in wp-content/plugins/vendor-city/vendor-city.php+95
Undefined index: state
- > GET request to /wp-admin/post-new.php?post_type=vendor
- > Notice in wp-content/plugins/vendor-city/vendor-city.php+98
Undefined index: pincode
SRP 50% from 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
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vendor-city/vendor-city.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vendor-city/shortcode.php:127
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== vendor-city ===
)
vendor-city/vendor-city.php Passed 13 tests
The main file in "Vendor City" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
43 characters long description:
It will show all vendor list with location.
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
Everything looks great! No dangerous files found in this plugin249 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 0 | 10 | 249 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 26.69KB | 14.72KB | ▼ 44.83% |
screenshot-3.png | 38.96KB | 20.69KB | ▼ 46.89% |
screenshot-2.png | 26.42KB | 14.58KB | ▼ 44.83% |
screenshot-4.png | 39.58KB | 21.78KB | ▼ 44.98% |