89% easy-location-map

Code Review | Easy Location Map

WordPress plugin Easy Location Map scored89%from 54 tests.

About plugin

  • Plugin page: easy-location-map
  • Plugin version: 1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9.2
  • WordPress version: 6.3.1
  • First release: Jan 30, 2018
  • Latest release: Mar 16, 2022
  • Number of updates: 5
  • Update frequency: every 301.2 days
  • Top authors: amrania (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /613 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.48ms] Passed 4 tests

Analyzing server-side resources used by Easy Location Map
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.28 ▲4.71
Dashboard /wp-admin3.37 ▲0.0756.21 ▲5.58
Posts /wp-admin/edit.php3.49 ▲0.1353.97 ▲1.49
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.00 ▼16.33
Media Library /wp-admin/upload.php3.27 ▲0.0535.98 ▲0.22

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

How much does this plugin use your filesystem and database?
This plugin was 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
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Easy Location Map
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,972 ▲21114.99 ▲0.432.16 ▲0.4645.83 ▲3.05
Dashboard /wp-admin2,378 ▲1726.50 ▲0.61126.77 ▲22.8135.24 ▼11.83
Posts /wp-admin/edit.php2,277 ▲1773.35 ▲1.3348.02 ▲9.5031.69 ▼5.13
Add New Post /wp-admin/post-new.php1,556 ▲1423.01 ▲4.59632.01 ▼26.2635.43 ▼17.05
Media Library /wp-admin/upload.php1,420 ▲204.16 ▲0.0588.58 ▼20.4046.56 ▼1.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: map, easy map, google map, different colors map

easy-location-map/easy_location_map.php 77% from 13 tests

The main PHP file in "Easy Location Map" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-location-map.php" instead of "easy_location_map.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 181 characters long)

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
Good job! No executable or dangerous file extensions detected355 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP17520163
JavaScript2551097
CSS118595

PHP code Passed 2 tests

This is a very shot review of 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.36
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/aqua.png0.76KB0.29KB▼ 61.70%