Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.06MB] [CPU: ▼328.65ms] Passed 4 tests
Server-side resources used by Places
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▼0.00 | 49.68 ▼1.30 |
Dashboard /wp-admin | 3.24 ▼0.17 | 19.67 ▼11.88 |
Posts /wp-admin/edit.php | 3.30 ▼0.33 | 21.73 ▼14.10 |
Add New Post /wp-admin/post-new.php | 3.28 ▼3.69 | 28.52 ▼1,283.56 |
Media Library /wp-admin/upload.php | 3.26 ▼0.03 | 17.79 ▼5.05 |
Add New /wp-admin/post-new.php?post_type=places | 3.27 | 26.76 |
Places /wp-admin/edit.php?post_type=places | 3.29 | 20.41 |
Server storage [IO: ▲2.93MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Places
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,956 ▲202 | 17.53 ▲1.83 | 11.72 ▲6.05 | 2.06 ▼0.65 |
Dashboard /wp-admin | 2,939 ▲85 | 7.29 ▲1.10 | 117.65 ▼31.67 | 155.29 ▼12.40 |
Posts /wp-admin/edit.php | 2,743 ▲86 | 3.49 ▲0.25 | 66.86 ▲2.36 | 142.74 ▲3.41 |
Add New Post /wp-admin/post-new.php | 1,716 ▲48 | 19.56 ▲2.97 | 450.69 ▲70.86 | 153.31 ▼2.39 |
Media Library /wp-admin/upload.php | 1,747 ▲49 | 6.24 ▲0.69 | 124.90 ▼16.73 | 184.96 ▲1.28 |
Add New /wp-admin/post-new.php?post_type=places | 9,295 | 19.57 | 581.33 | 182.15 |
Places /wp-admin/edit.php?post_type=places | 1,460 | 3.39 | 61.92 | 112.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=places
- > Notice in wp-content/plugins/places/inc/CF-places.php+117
Undefined index: place_updates_address
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=places
- > Notice in wp-content/plugins/places/inc/CF-geocoding-places.php+12
Undefined variable: index_js
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=places
- > User notice in wp-includes/functions.php+5768
WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/places/places.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Places post type), #2 (Places block), #3 (Front end display)
places/places.php 92% from 13 tests
"Places" version 0.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin17,476 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 5,208 | 6,948 | 16,191 |
CSS | 3 | 56 | 62 | 585 |
PHP | 5 | 53 | 91 | 333 |
JSX | 2 | 32 | 0 | 286 |
PO File | 1 | 23 | 27 | 80 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
inc/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
inc/leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
inc/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
inc/leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |