83% placepress

Code Review | PlacePress

WordPress plugin PlacePress scored83%from 54 tests.

About plugin

  • Plugin page: placepress
  • Plugin version: 1.4.3
  • PHP compatiblity: 7.4.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 1, 2019
  • Latest release: Oct 19, 2023
  • Number of updates: 31
  • Update frequency: every 51.7 days
  • Top authors: cphdh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,554 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼13.19ms] Passed 4 tests

Server-side resources used by PlacePress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3341.54 ▲1.61
Dashboard /wp-admin3.62 ▲0.2750.33 ▼12.01
Posts /wp-admin/edit.php3.74 ▲0.3950.82 ▲7.25
Add New Post /wp-admin/post-new.php5.46 ▼0.4355.43 ▼48.93
Media Library /wp-admin/upload.php3.54 ▲0.3138.03 ▲6.59
PlacePress /wp-admin/options-general.php?page=placepress3.5133.60
Location Types /wp-admin/edit-tags.php?taxonomy=location_types&post_type=locations3.6634.00
Tour Types /wp-admin/edit-tags.php?taxonomy=tour_types&post_type=tours3.6635.16
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=tours3.6636.83
All Locations /wp-admin/edit.php?post_type=locations3.6239.74
Add New /wp-admin/post-new.php?post_type=tours5.4650.05
Add New /wp-admin/post-new.php?post_type=locations5.4652.15
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=locations3.6637.07
All Tours /wp-admin/edit.php?post_type=tours3.6239.45

Server storage [IO: ▲3.91MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 76 new files
Database: no new tables, 23 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for PlacePress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲13414.17 ▼0.261.77 ▲0.1342.70 ▼1.17
Dashboard /wp-admin2,283 ▲1125.63 ▲0.1093.35 ▲7.6042.26 ▲4.71
Posts /wp-admin/edit.php2,174 ▲772.03 ▲0.0334.10 ▼2.4836.80 ▲5.68
Add New Post /wp-admin/post-new.php6,278 ▲4,74119.36 ▲1.04881.49 ▲293.6737.85 ▼29.64
Media Library /wp-admin/upload.php1,474 ▲804.22 ▲0.0392.11 ▼5.3844.86 ▲1.67
PlacePress /wp-admin/options-general.php?page=placepress1,3802.5255.6252.02
Location Types /wp-admin/edit-tags.php?taxonomy=location_types&post_type=locations1,3482.1225.4026.95
Tour Types /wp-admin/edit-tags.php?taxonomy=tour_types&post_type=tours1,3482.1226.7529.77
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=tours1,3932.1227.1128.22
All Locations /wp-admin/edit.php?post_type=locations1,2162.5734.3428.26
Add New /wp-admin/post-new.php?post_type=tours6,31621.00880.1733.72
Add New /wp-admin/post-new.php?post_type=locations6,32821.09735.3435.42
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=locations1,3932.2525.8730.20
All Tours /wp-admin/edit.php?post_type=tours1,2162.6036.1729.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 23 options
    • maki_markers
    • maki_markers_color
    • default_latitude
    • enable_location_types_map
    • marker_clustering
    • widget_theysaidso_widget
    • default_map_type
    • force_front_page
    • widget_placepress_widget
    • enable_tours
    • ...

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=locations
    • > User deprecated in wp-includes/functions.php+5828
    Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead.

SRP Passed 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
The SRP test was a success

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)
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can look at the official readme.txt

placepress/placepress.php 85% from 13 tests

The principal PHP file in "PlacePress" v. 1.4.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin31,299 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5098.04%
▷ Anonymous functions11.96%
▷ Global constants9100.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
7 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png21.36KB6.76KB▼ 68.35%