10% posts-in-map

Code Review | Posts in Map

WordPress plugin Posts in Map scored 10% from 54 tests.

About plugin

  • Plugin page: posts-in-map
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Dec 3, 2012
  • Latest release: Feb 13, 2013
  • Number of updates: 5
  • Update frequency: every 14.6 days
  • Top authors: lucdecri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,358 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/posts-in-map/pim.php+273
    syntax error, unexpected '}', expecting end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.45ms] Passed 4 tests

This is a short check of server-side resources used by Posts in Map
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.19 ▼1.86
Dashboard /wp-admin3.31 ▲0.0044.61 ▼5.76
Posts /wp-admin/edit.php3.36 ▲0.0049.44 ▼0.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.18 ▼21.20
Media Library /wp-admin/upload.php3.23 ▲0.0035.85 ▲2.52

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Posts in Map: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.172.26 ▲0.5644.20 ▲1.63
Dashboard /wp-admin2,209 ▲215.90 ▲1.02101.88 ▼15.5140.69 ▼4.18
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0239.08 ▼1.9036.22 ▼0.11
Add New Post /wp-admin/post-new.php1,522 ▲523.12 ▲5.35675.99 ▲59.2955.82 ▲4.36
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.0399.30 ▼3.7041.59 ▼4.96

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/posts-in-map/pim.php on line 273

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: google maps, gmap3, gmap, googlemaps, jquery...

posts-in-map/pim.php 92% from 13 tests

"Posts in Map" version 0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("posts-in-map.php" instead of "pim.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected152 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14775152

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
markers/orange-dot.png3.36KB0.76KB▼ 77.46%
markers/green-dot.png1.19KB1.08KB▼ 9.75%
markers/green-flag.png1.40KB1.45KB0.00%
markers/yellow-dot.png1.31KB1.06KB▼ 18.79%
markers/pink-dot.png1.32KB1.08KB▼ 18.31%