84% meks-easy-maps

Code Review | Meks Easy Maps

WordPress plugin Meks Easy Maps scored84%from 54 tests.

About plugin

  • Plugin page: meks-easy-maps
  • Plugin version: 2.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.3
  • WordPress version: 6.3.1
  • First release: Mar 29, 2018
  • Latest release: Sep 11, 2023
  • Number of updates: 29
  • Update frequency: every 68.8 days
  • Top authors: mekshq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /10,511 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.83ms] Passed 4 tests

This is a short check of server-side resources used by Meks Easy Maps
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.90 ▲1.07
Dashboard /wp-admin3.33 ▲0.0344.80 ▼3.37
Posts /wp-admin/edit.php3.38 ▲0.0348.16 ▼2.24
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.69 ▼13.97
Media Library /wp-admin/upload.php3.25 ▲0.0335.16 ▲0.27
Meks Easy Maps /wp-admin/options-general.php?page=meks-easy-maps3.2231.74

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Meks Easy Maps
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲5213.39 ▼1.031.82 ▼0.1246.55 ▲6.72
Dashboard /wp-admin2,223 ▲345.11 ▼0.77109.56 ▼4.4540.73 ▼4.12
Posts /wp-admin/edit.php2,114 ▲222.31 ▲0.2744.29 ▲1.1534.91 ▼5.05
Add New Post /wp-admin/post-new.php6,268 ▲4,73526.31 ▲3.29970.21 ▲348.3346.92 ▼3.58
Media Library /wp-admin/upload.php1,411 ▲264.42 ▲0.2099.93 ▼3.1744.34 ▲3.29
Meks Easy Maps /wp-admin/options-general.php?page=meks-easy-maps8432.0128.3624.72

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meks-easy-maps/admin/enqueue.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meks-easy-maps/public/map.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meks-easy-maps/admin/category-metabox-map.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meks-easy-maps/admin/post-metabox-map.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 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
5 plugin tags: google map, map, destination, location, pin

meks-easy-maps/meks-easy-maps.php Passed 13 tests

"Meks Easy Maps" version 2.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
91 characters long description:
Assign locations to your posts or categories and display it automatically with Google Maps.

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
No dangerous file extensions were detected7,810 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript131,4211,0675,448
PHP74073281,370
CSS610533922
PO File1222870

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods3096.77%
▷ Protected methods00.00%
▷ Private methods13.23%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
10 PNG files occupy 0.12MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/js/img/search@2x-disabled.png0.38KB0.19KB▼ 50.26%
public/img/marker-shadow.png0.60KB1.16KB0.00%
admin/js/img/search@2x.png0.75KB0.85KB0.00%
admin/js/img/search-disabled.png0.38KB0.19KB▼ 50.26%
public/img/layers.png0.68KB1.05KB0.00%