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
Installer ran successfully
Server metrics [RAM: ▼0.28MB] [CPU: ▼27.46ms] Passed 4 tests
This is a short check of server-side resources used by PostMapper
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 70.94 ▲4.51 |
Dashboard /wp-admin | 3.33 ▲0.02 | 84.79 ▼4.49 |
Posts /wp-admin/edit.php | 3.27 ▼0.09 | 51.51 ▼32.45 |
Add New Post /wp-admin/post-new.php | 4.72 ▼1.17 | 95.13 ▼71.06 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 66.44 ▼1.82 |
Add New Listing /wp-admin/post-new.php?post_type=postmapper | 3.37 | 73.82 |
Export /wp-admin/edit.php?post_type=postmapper&page=register_postmapper_export_page | 3.29 | 52.34 |
Post Mapper /wp-admin/edit.php?post_type=postmapper | 3.39 | 64.81 |
Options /wp-admin/edit.php?post_type=postmapper&page=register_postmapper_options_page | 3.32 | 57.95 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
PostMapper: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲131 | 14.31 ▲0.38 | 3.35 ▲0.17 | 74.13 ▲3.18 |
Dashboard /wp-admin | 2,238 ▲50 | 5.88 ▲0.97 | 185.41 ▼6.71 | 92.42 ▲0.90 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.00 ▼0.13 | 71.73 ▼8.02 | 70.40 ▲4.96 |
Add New Post /wp-admin/post-new.php | 1,403 ▲28 | 17.97 ▲0.13 | 936.71 ▼28.83 | 67.76 ▼2.32 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.19 ▲0.01 | 184.50 ▲2.25 | 95.80 ▼0.80 |
Add New Listing /wp-admin/post-new.php?post_type=postmapper | 1,882 | 3.67 | 119.55 | 69.33 |
Export /wp-admin/edit.php?post_type=postmapper&page=register_postmapper_export_page | 839 | 2.03 | 46.97 | 56.82 |
Post Mapper /wp-admin/edit.php?post_type=postmapper | 1,148 | 1.93 | 56.49 | 70.31 |
Options /wp-admin/edit.php?post_type=postmapper&page=register_postmapper_options_page | 974 | 1.71 | 45.96 | 75.08 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+57
Undefined index: postmapper_address
- 17 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+73
Trying to access array offset on value of type null
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+58
Undefined index: postmapper_city
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+59
Undefined index: postmapper_state
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+60
Undefined index: postmapper_zipcode
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+61
Undefined index: postmapper_phone
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+62
Undefined index: postmapper_email
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+63
Undefined index: postmapper_rent
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+64
Undefined index: postmapper_beds
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+65
Undefined index: postmapper_baths
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+66
Undefined index: postmapper_geocode
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+67
Undefined index: postmapper_property_type
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+68
Undefined index: postmapper_neighborhoods
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+69
Undefined index: postmapper_pets
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+70
Undefined index: postmapper_paid
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+71
Undefined index: postmapper_website
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+72
Undefined index: postmapper_details
- > GET request to /wp-admin/post-new.php?post_type=postmapper
- > Notice in wp-content/plugins/postmapper/postmapper.php+73
Undefined index: postmapper_notes
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=postmapper&page=register_postmapper_export_page
- > Notice in wp-content/plugins/postmapper/postmapper.php+436
Undefined index: export_by
- > GET request to /wp-admin/edit.php?post_type=postmapper&page=register_postmapper_export_page
- > Notice in wp-content/plugins/postmapper/postmapper.php+445
Undefined variable: rows
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/postmapper/postmapper-results-json.php
- > /wp-content/plugins/postmapper/postmapper-map.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postmapper/postmapper.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: for rent, for sale, realty, map, classified ads
postmapper/postmapper.php Passed 13 tests
The primary PHP file in "PostMapper" version 1.2 is used by WordPress to initiate all plugin functionality
57 characters long description:
Allows you to manage realty listings via custom post type
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,019 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 121 | 32 | 1,010 |
JavaScript | 1 | 137 | 111 | 1,009 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 17 | |
▷ Named functions | 17 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin