90% wp-job-manager-client-side-geocoder

Code Review | WP Job Manager Client-Side Geocoder

WordPress plugin WP Job Manager Client-Side Geocoder scored90%from 54 tests.

About plugin

  • Plugin page: wp-job-manager-cl...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Nov 8, 2014
  • Latest release: Sep 15, 2017
  • Number of updates: 9
  • Update frequency: every 115.8 days
  • Top authors: ninjew (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /5,915 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by WP Job Manager Client-Side Geocoder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0433.84 ▼4.65
Dashboard /wp-admin3.34 ▲0.0444.35 ▼1.57
Posts /wp-admin/edit.php3.40 ▲0.0444.77 ▼2.66
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.20 ▲4.80
Media Library /wp-admin/upload.php3.27 ▲0.0433.15 ▼1.05

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP Job Manager Client-Side Geocoder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.22 ▼0.931.64 ▼0.1340.85 ▼0.00
Dashboard /wp-admin2,215 ▲274.86 ▲0.02113.00 ▲10.0342.02 ▼2.62
Posts /wp-admin/edit.php2,098 ▲92.01 ▼0.0440.75 ▼3.3837.15 ▼1.31
Add New Post /wp-admin/post-new.php1,545 ▲323.22 ▲5.02604.21 ▼2.0151.18 ▼0.44
Media Library /wp-admin/upload.php1,397 ▲94.20 ▲0.03103.12 ▼3.3041.83 ▼4.73

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

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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive 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 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
4 plugin tags: wp job manager, over_query_limit, geocode, google maps api

wp-job-manager-client-side-geocoder/jmcsg.php 92% from 13 tests

The primary PHP file in "WP Job Manager Client-Side Geocoder" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-job-manager-client-side-geocoder.php" instead of "jmcsg.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
Good job! No executable or dangerous file extensions detected291 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16895166
JavaScript27049125

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected