10% map-posts-free

Code Review | Map Posts Free

WordPress plugin Map Posts Free scored10%from 54 tests.

About plugin

  • Plugin page: map-posts-free
  • Plugin version: 1.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.6
  • WordPress version: 6.3.1
  • First release: Apr 12, 2018
  • Latest release: Jan 9, 2021
  • Number of updates: 37
  • Update frequency: every 27.2 days
  • Top authors: pschwarzgm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,343 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/map-posts-free/includes/map-posts-common.php+535
    The each() function is deprecated. This message will be suppressed on further calls

Server metrics [RAM: ▼0.57MB] [CPU: ▼16.41ms] Passed 4 tests

An overview of server-side resources used by Map Posts Free
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1240.86 ▼0.37
Dashboard /wp-admin3.42 ▲0.1245.18 ▼4.80
Posts /wp-admin/edit.php3.53 ▲0.1848.26 ▼0.06
Add New Post /wp-admin/post-new.php3.27 ▼2.6237.12 ▼60.41
Media Library /wp-admin/upload.php3.34 ▲0.1136.76 ▲2.84

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
iptmp_defaults
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Map Posts Free
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.33 ▼1.221.67 ▼0.1538.25 ▼9.40
Dashboard /wp-admin2,203 ▲125.83 ▼0.0797.57 ▼2.9341.07 ▼2.25
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0239.20 ▼1.9434.52 ▼0.47
Add New Post /wp-admin/post-new.php6,463 ▲4,94626.56 ▲8.96851.50 ▲266.6986.72 ▲33.63
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0494.21 ▼4.9542.94 ▼0.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/map-posts-free/includes/map-posts-common.php+535
    The each() function is deprecated. This message will be suppressed on further calls
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: insert map wordpress, simple map plugin, map, open street map

map-posts-free/map-posts-free.php Passed 13 tests

The main file in "Map Posts Free" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
94 characters long description:
Configure and insert a map without leaving the editor. Save location as part of post metadata.

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
Everything looks great! No dangerous files found in this plugin1,241 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4219202614
CSS15323560
JavaScript3283667

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity44.00
▷ Minimum class complexity17.00
▷ Maximum class complexity71.00
Average method complexity5.53
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/marker-shadow.png0.60KB1.16KB0.00%
css/images/marker-icon.png1.43KB1.55KB0.00%
images/layers.png0.68KB1.05KB0.00%
images/iptmp_Insert_All_Posts_Map.png1.44KB0.52KB▼ 64.08%
images/iptmp_Insert_Map.png1.51KB0.75KB▼ 50.23%