Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼7.59ms] Passed 4 tests
A check of server-side resources used by Stellar Places
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 40.68 ▲1.57 |
Dashboard /wp-admin | 3.66 ▲0.32 | 47.29 ▼13.57 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 52.65 ▲10.47 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 84.54 ▼15.61 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 37.32 ▼2.75 |
Places /wp-admin/edit.php?post_type=stlr_place | 3.63 | 38.02 |
Location Categories /wp-admin/edit-tags.php?taxonomy=stlr_location_categories&post_type=stlr_place | 3.52 | 36.74 |
Add New /wp-admin/post-new.php?post_type=stlr_place | 6.29 | 82.72 |
Settings /wp-admin/edit.php?post_type=stlr_place&page=stellar-places-settings | 3.49 | 34.30 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 7 new options
New WordPress options |
---|
stellar_places_version |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Stellar Places
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲117 | 14.44 ▲0.12 | 1.96 ▲0.24 | 40.32 ▼4.75 |
Dashboard /wp-admin | 2,241 ▲53 | 5.91 ▲0.05 | 108.37 ▼0.81 | 39.68 ▼4.68 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.00 ▼0.04 | 40.97 ▼0.14 | 35.00 ▼3.41 |
Add New Post /wp-admin/post-new.php | 1,565 ▲46 | 23.12 ▼0.20 | 657.21 ▼4.57 | 59.94 ▲7.21 |
Media Library /wp-admin/upload.php | 1,423 ▲41 | 4.19 ▲0.07 | 105.57 ▲2.95 | 45.91 ▲5.67 |
Places /wp-admin/edit.php?post_type=stlr_place | 1,105 | 1.95 | 30.46 | 28.55 |
Location Categories /wp-admin/edit-tags.php?taxonomy=stlr_location_categories&post_type=stlr_place | 3,144 | 2.16 | 48.42 | 51.77 |
Add New /wp-admin/post-new.php?post_type=stlr_place | 7,133 | 23.47 | 911.33 | 67.02 |
Settings /wp-admin/edit.php?post_type=stlr_place&page=stellar-places-settings | 2,665 | 2.28 | 47.16 | 35.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- stellar_places_version
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stellar-places/includes/upgrades/1.0.4.php:11
- > PHP Fatal error
Uncaught Error: Class 'Stellar_Places' not found in wp-content/plugins/stellar-places/includes/templates/archive.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/stellar-places/includes/init.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/stellar-places/includes/support/views/icon-picker.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/stellar-places/includes/queries/places-query.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stellar-places/includes/upgrades/1.0.2.php:11
- > PHP Fatal error
Uncaught Error: Class 'Stellar_Places' not found in wp-content/plugins/stellar-places/includes/templates/single.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/stellar-places/includes/support/views/location.php:6
- > 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=stlr_place
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?libraries=places&ver=1.3 234: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"
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== stellar-places ===
)
stellar-places/stellar-places.php 85% from 13 tests
This is the main PHP file of "Stellar Places" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3,593 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 491 | 1,399 | 2,339 |
JavaScript | 4 | 85 | 183 | 528 |
PO File | 2 | 95 | 497 | 512 |
CSS | 2 | 18 | 38 | 90 |
JSON | 1 | 0 | 0 | 78 |
HTML | 1 | 17 | 0 | 46 |
PHP code Passed 2 tests
An overview 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.31 |
Average class complexity | 9.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 1 | 3.85% |
Methods | 162 | |
▷ Static methods | 69 | 42.59% |
▷ Public methods | 155 | 95.68% |
▷ Protected methods | 6 | 3.70% |
▷ Private methods | 1 | 0.62% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected