Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.63MB] [CPU: ▼14.98ms] Passed 4 tests
This is a short check of server-side resources used by Google Maps Retailers
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 51.37 ▲10.98 |
Dashboard /wp-admin | 3.37 ▲0.03 | 45.51 ▼8.78 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 53.87 ▲12.67 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.68 | 33.16 ▼65.43 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.75 ▲3.32 |
Retailer Settings /wp-admin/edit.php?post_type=retailer&page=retailer_settings_page | 3.26 | 31.83 |
All Retailers /wp-admin/edit.php?post_type=retailer | 3.34 | 36.27 |
Add New /wp-admin/post-new.php?post_type=retailer | 3.15 | 26.21 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
fusion_states_settings |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Google Maps Retailers
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,983 ▲248 | 15.01 ▲0.66 | 30.31 ▲28.17 | 41.90 ▼3.14 |
Dashboard /wp-admin | 2,245 ▲71 | 5.88 ▲0.24 | 92.25 ▲8.60 | 37.75 ▼0.16 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.29 ▲0.31 | 39.94 ▼1.26 | 34.77 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,566 ▲40 | 23.28 ▲0.10 | 674.71 ▲41.62 | 35.24 ▼24.52 |
Media Library /wp-admin/upload.php | 1,453 ▲53 | 4.42 ▲0.28 | 97.93 ▼1.33 | 41.91 ▼1.43 |
Retailer Settings /wp-admin/edit.php?post_type=retailer&page=retailer_settings_page | 6,467 | 4.04 | 243.48 | 32.82 |
All Retailers /wp-admin/edit.php?post_type=retailer | 1,122 | 2.21 | 34.87 | 28.80 |
Add New /wp-admin/post-new.php?post_type=retailer | 1,942 | 2.78 | 57.42 | 29.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- fusion_states_settings
- widget_theysaidso_widget
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=retailer
- > Notice in wp-content/plugins/fusion-retailers/fusion_retailers_metaboxes.php+19
Undefined index: post_type
- 50 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=retailer
- > Warning in wp-content/plugins/fusion-retailers/fusion_retailers_metaboxes.php+64
in_array() expects parameter 2 to be array, string given
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-retailers/fusion_retailers_metaboxes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/fusion-retailers/fusion_retailers.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: retail, retailers, store locator, map, google map...
fusion-retailers/fusion_retailers.php 92% from 13 tests
The main PHP script in "Google Maps Retailers" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fusion-retailers.php" instead of "fusion_retailers.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin7,276 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 4 | 0 | 6,946 |
PHP | 2 | 31 | 25 | 278 |
JavaScript | 2 | 3 | 0 | 44 |
CSS | 1 | 1 | 0 | 7 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 16 | |
▷ Named functions | 16 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin