Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.48MB] [CPU: ▲6.09ms] Passed 4 tests
A check of server-side resources used by shMapper by Teplitsa
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 45.72 ▲2.47 |
Dashboard /wp-admin | 3.80 ▲0.50 | 58.69 ▲7.01 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 60.43 ▲10.22 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 117.25 ▲28.75 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 39.31 ▲4.65 |
Map track types /wp-admin/edit-tags.php?taxonomy=shmapper_track_type | 3.78 | 45.27 |
all Maps /wp-admin/edit.php?post_type=shm_map | 3.80 | 49.04 |
All Map tracks /wp-admin/edit.php?post_type=shmapper_track | 3.83 | 44.06 |
all Map markers /wp-admin/edit.php?post_type=shm_point | 3.83 | 46.17 |
Settings /wp-admin/admin.php?page=shm_settings_page | 3.68 | 41.90 |
Map marker types /wp-admin/edit-tags.php?taxonomy=shm_point_type | 3.73 | 47.78 |
Shmapper /wp-admin/admin.php?page=shm_page | 3.60 | 39.12 |
All Map marker messages /wp-admin/edit.php?post_type=shm_point_msg | 3.83 | 46.79 |
all Map Requests /wp-admin/edit.php?post_type=shm_request | 3.83 | 47.95 |
Server storage [IO: ▲1.41MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 154 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_point_map |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
shmapper-drive |
shmapper-by-teplitsa |
widget_shmlocationnavigatorwidget |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by shMapper by Teplitsa
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,426 ▲665 | 18.14 ▲3.49 | 15.69 ▲13.81 | 44.01 ▼4.86 |
Dashboard /wp-admin | 2,660 ▲456 | 7.76 ▲1.71 | 152.73 ▲30.82 | 49.63 ▲5.19 |
Posts /wp-admin/edit.php | 2,569 ▲469 | 5.07 ▲3.07 | 73.35 ▲36.49 | 43.71 ▲9.29 |
Add New Post /wp-admin/post-new.php | 6,402 ▲4,857 | 24.19 ▲1.01 | 928.21 ▲240.21 | 45.09 ▼10.35 |
Media Library /wp-admin/upload.php | 1,737 ▲337 | 5.23 ▲1.01 | 109.88 ▲3.10 | 52.09 ▲2.52 |
Map track types /wp-admin/edit-tags.php?taxonomy=shmapper_track_type | 1,697 | 5.15 | 77.25 | 37.23 |
all Maps /wp-admin/edit.php?post_type=shm_map | 1,623 | 5.02 | 71.49 | 44.33 |
All Map tracks /wp-admin/edit.php?post_type=shmapper_track | 1,568 | 4.98 | 68.05 | 36.47 |
all Map markers /wp-admin/edit.php?post_type=shm_point | 1,580 | 5.06 | 68.43 | 36.45 |
Settings /wp-admin/admin.php?page=shm_settings_page | 3,442 | 5.44 | 83.35 | 65.78 |
Map marker types /wp-admin/edit-tags.php?taxonomy=shm_point_type | 1,730 | 5.15 | 70.21 | 43.58 |
Shmapper /wp-admin/admin.php?page=shm_page | 3,453 | 5.47 | 83.75 | 50.97 |
All Map marker messages /wp-admin/edit.php?post_type=shm_point_msg | 1,554 | 4.96 | 67.86 | 41.54 |
all Map Requests /wp-admin/edit.php?post_type=shm_request | 1,591 | 4.99 | 68.62 | 36.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_point_map
- Zombie WordPress options detected upon uninstall: 9 options
- shmapper-drive
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- shmapper-by-teplitsa
- widget_shmlocationnavigatorwidget
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 32× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SMC_Post' not found in wp-content/plugins/shmapper-by-teplitsa/class/ShmMap.class.php:8
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/shmapper-by-teplitsa/shmapperTracks.plugin.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shmapper-by-teplitsa/inc/editor/blocks.php:10
- > PHP Fatal error
Uncaught Error: Interface 'League\\Csv\\ByteSequence' not found in wp-content/plugins/shmapper-by-teplitsa/assets/google-sheets/vendor/league/csv/src/AbstractCsv.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function recaptcha_mailhide_html() in wp-content/plugins/shmapper-by-teplitsa/assets/recaptcha-php/example-mailhide.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function recaptcha_get_html() in wp-content/plugins/shmapper-by-teplitsa/assets/recaptcha-php/example-captcha.php:31
- > PHP Fatal error
Uncaught Error: Class 'SMC_Post' not found in wp-content/plugins/shmapper-by-teplitsa/class/ShMapperRequest.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'SMC_Post' not found in wp-content/plugins/shmapper-by-teplitsa/class/ShMapperTracksPoint.class.php:8
- > PHP Warning
Use of undefined constant SHM_REAL_PATH - assumed 'SHM_REAL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shmapper-by-teplitsa/inc/editor/editor.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shmapper-by-teplitsa/inc/shm-functions.php:127
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/edit-tags.php?taxonomy=shm_point_type
- > Rendering (warning) in unknown
/wp-admin/edit-tags.php?taxonomy=shm_point_type 273 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Edit map form example), #2 (Map and feedback form example)
shmapper-by-teplitsa/shmapper.php 92% from 13 tests
The entry point to "shMapper by Teplitsa" version 1.4.15 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shmapper-by-teplitsa.php" instead of "shmapper.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
Good job! No executable or dangerous file extensions detected25,000 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 74 | 1,428 | 2,468 | 11,677 |
JavaScript | 18 | 890 | 701 | 6,888 |
CSS | 16 | 338 | 143 | 3,573 |
SVG | 12 | 5 | 4 | 1,570 |
Markdown | 1 | 405 | 0 | 645 |
PO File | 1 | 237 | 275 | 487 |
JSON | 3 | 0 | 0 | 160 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 24.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 1 | 2.04% |
▷ Concrete classes | 48 | 97.96% |
▷ Final classes | 1 | 2.08% |
Methods | 478 | |
▷ Static methods | 235 | 49.16% |
▷ Public methods | 428 | 89.54% |
▷ Protected methods | 40 | 8.37% |
▷ Private methods | 10 | 2.09% |
Functions | 71 | |
▷ Named functions | 52 | 73.24% |
▷ Anonymous functions | 19 | 26.76% |
Constants | 51 | |
▷ Global constants | 28 | 54.90% |
▷ Class constants | 23 | 45.10% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/layers.png | 0.68KB | 1.05KB | 0.00% |
assets/img/block-example.png | 11.61KB | 5.74KB | ▼ 50.53% |
assets/css/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
assets/css/img/search-disabled.png | 0.38KB | 0.19KB | ▼ 50.26% |
assets/img/check_checked.png | 1.75KB | 0.91KB | ▼ 47.99% |