90% gmap-filter

Code Review | GMap Filter

WordPress plugin GMap Filter scored90%from 54 tests.

About plugin

  • Plugin page: gmap-filter
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Sep 13, 2016
  • Latest release: Sep 13, 2016
  • Number of updates: 7
  • Update frequency: every 16.6 days
  • Top authors: wpshopee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /797 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.08ms] Passed 4 tests

An overview of server-side resources used by GMap Filter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.36 ▼5.50
Dashboard /wp-admin3.38 ▲0.0347.83 ▼15.25
Posts /wp-admin/edit.php3.43 ▲0.0746.53 ▲0.49
Add New Post /wp-admin/post-new.php5.98 ▲0.1092.11 ▲6.73
Media Library /wp-admin/upload.php3.30 ▲0.0733.14 ▼0.05
Add New /wp-admin/post-new.php?post_type=address3.4551.35
API Key /wp-admin/edit.php?post_type=address&page=wps-gmap-filter-manage3.2739.22
All Address /wp-admin/edit.php?post_type=address3.3436.78
Group /wp-admin/edit-tags.php?taxonomy=group&post_type=address3.3034.69

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for GMap Filter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.21 ▼1.024.76 ▲2.5742.68 ▼1.20
Dashboard /wp-admin2,240 ▲555.81 ▼0.0999.76 ▼13.5341.41 ▼3.39
Posts /wp-admin/edit.php2,129 ▲612.03 ▲0.0340.83 ▲6.4233.46 ▼0.16
Add New Post /wp-admin/post-new.php1,568 ▲5418.18 ▲0.75612.95 ▼67.7651.86 ▼11.10
Media Library /wp-admin/upload.php1,428 ▲404.27 ▲0.0596.19 ▼7.1445.13 ▲2.38
Add New /wp-admin/post-new.php?post_type=address2,6547.72181.6266.02
API Key /wp-admin/edit.php?post_type=address&page=wps-gmap-filter-manage8441.7123.6327.56
All Address /wp-admin/edit.php?post_type=address1,1521.9530.5931.02
Group /wp-admin/edit-tags.php?taxonomy=group&post_type=address1,2992.2726.3527.48

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
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: filter, google, gmap

gmap-filter/gmap-filter.php 92% from 13 tests

This is the main PHP file of "GMap Filter" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected293 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2253221
JavaScript20472

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions11
▷ Named functions11100.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
PNG images were not found in this plugin