73% postmapper

Code Review | PostMapper

WordPress plugin PostMapper scored 73% from 54 tests.

About plugin

  • Plugin page: postmapper
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 1, 2012
  • Latest release: Sep 10, 2014
  • Number of updates: 31
  • Update frequency: every 22.4 days
  • Top authors: Droyal (67.74%)dkukral (22.58%)jboydston (16.13%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,308 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1270.94 ▲4.51
Dashboard /wp-admin3.33 ▲0.0284.79 ▼4.49
Posts /wp-admin/edit.php3.27 ▼0.0951.51 ▼32.45
Add New Post /wp-admin/post-new.php4.72 ▼1.1795.13 ▼71.06
Media Library /wp-admin/upload.php3.35 ▲0.1266.44 ▼1.82
Add New Listing /wp-admin/post-new.php?post_type=postmapper3.3773.82
Export /wp-admin/edit.php?post_type=postmapper&page=register_postmapper_export_page3.2952.34
Post Mapper /wp-admin/edit.php?post_type=postmapper3.3964.81
Options /wp-admin/edit.php?post_type=postmapper&page=register_postmapper_options_page3.3257.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲13114.31 ▲0.383.35 ▲0.1774.13 ▲3.18
Dashboard /wp-admin2,238 ▲505.88 ▲0.97185.41 ▼6.7192.42 ▲0.90
Posts /wp-admin/edit.php2,127 ▲382.00 ▼0.1371.73 ▼8.0270.40 ▲4.96
Add New Post /wp-admin/post-new.php1,403 ▲2817.97 ▲0.13936.71 ▼28.8367.76 ▼2.32
Media Library /wp-admin/upload.php1,426 ▲354.19 ▲0.01184.50 ▲2.2595.80 ▼0.80
Add New Listing /wp-admin/post-new.php?post_type=postmapper1,8823.67119.5569.33
Export /wp-admin/edit.php?post_type=postmapper&page=register_postmapper_export_page8392.0346.9756.82
Post Mapper /wp-admin/edit.php?post_type=postmapper1,1481.9356.4970.31
Options /wp-admin/edit.php?post_type=postmapper&page=register_postmapper_options_page9741.7145.9675.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP4121321,010
JavaScript11371111,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 code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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