Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.56MB] [CPU: ▼4.21ms] Passed 4 tests
Analyzing server-side resources used by ASD Feature Maps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.53 | 44.27 ▲3.80 |
Dashboard /wp-admin | 3.86 ▲0.56 | 52.40 ▼0.43 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 54.30 ▼3.25 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.63 | 92.88 ▼16.94 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 42.91 ▲4.73 |
New Place /wp-admin/post-new.php?post_type=asd_feature_map | 3.99 | 62.68 |
Categories /wp-admin/edit-tags.php?taxonomy=asd_map_category&post_type=asd_feature_map | 3.80 | 44.89 |
Export /wp-admin/edit.php?post_type=acf&page=acf-export | 3.76 | 35.69 |
Add-ons /wp-admin/edit.php?post_type=acf&page=acf-addons | 3.70 | 35.61 |
Custom Fields /wp-admin/edit.php?post_type=acf | 3.94 | 42.09 |
All Places /wp-admin/edit.php?post_type=asd_feature_map | 3.83 | 41.13 |
Server storage [IO: ▲4.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 313 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
asd_map_category_children |
acf_version |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by ASD Feature Maps
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,011 ▲250 | 14.83 ▲0.52 | 29.58 ▲27.81 | 41.11 ▲2.01 |
Dashboard /wp-admin | 2,265 ▲91 | 5.63 ▲0.01 | 82.80 ▼4.35 | 81.41 ▲35.99 |
Posts /wp-admin/edit.php | 2,170 ▲67 | 2.04 ▲0.04 | 34.97 ▼3.20 | 34.40 ▲0.42 |
Add New Post /wp-admin/post-new.php | 6,678 ▲5,143 | 24.42 ▲1.14 | 1,005.70 ▲339.00 | 39.25 ▼12.43 |
Media Library /wp-admin/upload.php | 1,467 ▲67 | 4.16 ▼0.08 | 95.06 ▼5.20 | 81.91 ▲39.30 |
New Place /wp-admin/post-new.php?post_type=asd_feature_map | 4,298 | 12.58 | 289.74 | 137.86 |
Categories /wp-admin/edit-tags.php?taxonomy=asd_map_category&post_type=asd_feature_map | 1,446 | 2.21 | 27.09 | 36.96 |
Export /wp-admin/edit.php?post_type=acf&page=acf-export | 1,007 | 2.05 | 30.19 | 31.61 |
Add-ons /wp-admin/edit.php?post_type=acf&page=acf-addons | 1,069 | 2.18 | 27.42 | 33.61 |
Custom Fields /wp-admin/edit.php?post_type=acf | 1,226 | 2.07 | 36.39 | 37.29 |
All Places /wp-admin/edit.php?post_type=asd_feature_map | 1,154 | 2.01 | 38.66 | 31.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- can_compress_scripts
- asd_map_category_children
- acf_version
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following items
- 40× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/asd-feature-maps/includes/advanced-custom-fields/core/fields/true_false.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/asd-feature-maps/includes/advanced-custom-fields/core/controllers/upgrade.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/asd-feature-maps/includes/advanced-custom-fields/core/views/meta_box_options.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/asd-feature-maps/includes/advanced-custom-fields/core/fields/_functions.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/asd-feature-maps/includes/advanced-custom-fields/core/controllers/revisions.php:30
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/asd-feature-maps/includes/advanced-custom-fields/core/fields/page_link.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/asd-feature-maps/includes/advanced-custom-fields/core/controllers/post.php:33
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/asd-feature-maps/includes/advanced-custom-fields/core/fields/number.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/asd-feature-maps/includes/advanced-custom-fields/core/fields/email.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/asd-feature-maps/includes/advanced-custom-fields/core/fields/password.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=asd_feature_map
- > Network (severe)
wp-content/plugins/asd-feature-maps/images/icons/rocket-1.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=asd_feature_map
- > Console-api (warning) in unknown
https://www.google.com/jsapi?_=1697324646040 144:27 "Loading Maps API with the jsapi loader is deprecated."
- > GET request to /wp-admin/post-new.php?post_type=asd_feature_map
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?jsapiRedirect=true&key=AIzaSyCJ9qw8k4lvjsxkwZ25lxHkNYxl4TqBjlQ&libraries=places 235: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"
- > GET request to /wp-admin/post-new.php?post_type=asd_feature_map
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?jsapiRedirect=true&key=AIzaSyCJ9qw8k4lvjsxkwZ25lxHkNYxl4TqBjlQ&libraries=places 153:248 "You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started"
Optimizations
Plugin configuration 86% 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 need to be fixed:
- Screenshots: These screenshots require images: #1 (Create / edit map places.), #2 (Manage all places with the standard WP methods.), #3 (Select a icon to show on the map or upload a custom icon file.), #4 (Basic frontend view showing all categories and places.), #5 (Frontend view showing a place detail.)
asd-feature-maps/asd_feature_map.php 77% from 13 tests
The main PHP file in "ASD Feature Maps" ver. 1.3.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("asd-feature-maps.php" instead of "asd_feature_map.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Requires at least: Required version does not match the one declared in readme.txt ("3.8.0" instead of "3.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin39,988 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 23 | 9,297 | 13,653 | 20,306 |
PHP | 44 | 4,084 | 4,772 | 9,934 |
JavaScript | 25 | 4,016 | 2,958 | 7,327 |
CSS | 7 | 713 | 402 | 2,421 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 24.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 4.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 272 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 272 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 62 | |
▷ Named functions | 62 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
176 PNG files occupy 1.48MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/award.png | 0.40KB | 0.32KB | ▼ 18.72% |
images/icons/fish.png | 1.24KB | 0.43KB | ▼ 65.12% |
images/icons/campsite.png | 0.34KB | 0.31KB | ▼ 9.71% |
images/icons/cake.png | 1.25KB | 0.40KB | ▼ 67.94% |
images/icons/cancel.png | 0.30KB | 0.28KB | ▼ 7.17% |