Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.17MB] [CPU: ▼13.80ms] Passed 4 tests
An overview of server-side resources used by Find Us At
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 31.83 ▼12.72 |
Dashboard /wp-admin | 3.12 ▼0.18 | 35.70 ▼16.06 |
Posts /wp-admin/edit.php | 3.26 ▼0.10 | 37.06 ▼18.66 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.38 | 92.95 ▼7.75 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 29.53 ▼6.77 |
Find Us At /wp-admin/options-general.php?page=findusat | 3.11 | 31.10 |
Locations /wp-admin/edit.php?post_type=location | 3.24 | 35.64 |
Add New /wp-admin/post-new.php?post_type=location | 3.29 | 59.53 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Find Us At
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲195 | 14.91 ▲1.64 | 10.64 ▲8.73 | 38.13 ▼8.98 |
Dashboard /wp-admin | 2,240 ▲34 | 5.91 ▲1.12 | 114.73 ▲12.13 | 43.12 ▲3.51 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.72 ▲0.76 | 47.15 ▲11.73 | 34.72 ▲2.42 |
Add New Post /wp-admin/post-new.php | 1,566 ▲24 | 18.95 ▲0.39 | 605.24 ▼12.57 | 35.01 ▼16.83 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 5.11 ▲0.69 | 101.94 ▲1.02 | 40.29 ▼2.85 |
Find Us At /wp-admin/options-general.php?page=findusat | 821 | 2.51 | 36.19 | 33.60 |
Locations /wp-admin/edit.php?post_type=location | 1,093 | 2.71 | 45.10 | 31.14 |
Add New /wp-admin/post-new.php?post_type=location | 2,266 | 8.58 | 177.48 | 65.15 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=location
- > Notice in wp-content/plugins/findusat/findusat.php+189
Undefined variable: options
SRP 50% from 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
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/findusat/include/findusat_admin_settings.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/findusat/include/findusat_admin_settings.php:66
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=location
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key&ver=1 208:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=location
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught Raa: Map: Expected mapDiv of type HTMLElement but was passed null.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Convert the address of your location to coordinates for google maps), #2 (Display the map with your locations by use of a shimple shortcode)
findusat/findusat.php Passed 13 tests
Analyzing the main PHP file in "Find Us At" version 1.2.1
104 characters long description:
Location of stores where your items can be found, and easily provide directions at the click of a button
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin358 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 50 | 57 | 239 |
JavaScript | 2 | 17 | 7 | 99 |
CSS | 2 | 1 | 0 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 15 | |
▷ Named functions | 15 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.57MB with 0.39MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 363.02KB | 111.65KB | ▼ 69.24% |
assets/screenshot-1.png | 222.35KB | 72.13KB | ▼ 67.56% |