83% easy-location-display

Code Review | google map for any post

WordPress plugin google map for any post scored83%from 54 tests.

About plugin

  • Plugin page: easy-location-dis...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 28, 2016
  • Latest release: Jan 28, 2016
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: emuter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /578 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.14ms] Passed 4 tests

This is a short check of server-side resources used by google map for any post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.28 ▼6.16
Dashboard /wp-admin3.37 ▲0.0649.86 ▼3.91
Posts /wp-admin/edit.php3.42 ▲0.0649.48 ▼1.75
Add New Post /wp-admin/post-new.php5.97 ▲0.0883.42 ▼10.40
Media Library /wp-admin/upload.php3.29 ▲0.0635.55 ▼4.09

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by google map for any post
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4913.86 ▼0.914.16 ▲2.3545.03 ▼4.91
Dashboard /wp-admin2,204 ▲275.48 ▼0.09120.56 ▲30.7778.39 ▲36.80
Posts /wp-admin/edit.php2,108 ▲52.03 ▲0.0234.27 ▼5.6535.08 ▼0.54
Add New Post /wp-admin/post-new.php1,550 ▲2222.84 ▼0.09728.65 ▲60.1859.25 ▲6.59
Media Library /wp-admin/upload.php1,415 ▲124.94 ▲0.75111.60 ▲8.7290.14 ▲41.70

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-location-display/google-map-metabox.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Screenshot to settings page), #2 (Screenshot to post add page), #3 (Screenshot to single post page in frontend)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === easy-location-display === )
The official readme.txt is a good inspiration

easy-location-display/google-map-metabox.php 85% from 13 tests

The entry point to "google map for any post" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-location-display.php" instead of "google-map-metabox.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin288 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP26414196
JavaScript233268
CSS28624

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
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
images/icon.png1.12KB0.36KB▼ 67.77%