83% auto-location-for-wp-job-manager

Code Review | Auto Location for WP Job Manager

WordPress plugin Auto Location for WP Job Manager scored83%from 54 tests.

About plugin

  • Plugin page: auto-location-for...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 12, 2019
  • Latest release: Aug 6, 2023
  • Number of updates: 17
  • Update frequency: every 85.6 days
  • Top authors: gravitymaster97 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,910 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
Install script ran successfully

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

Analyzing server-side resources used by Auto Location for WP Job Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.61 ▲1.02
Dashboard /wp-admin3.34 ▲0.0455.86 ▲6.46
Posts /wp-admin/edit.php3.39 ▲0.0449.15 ▲0.48
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.71 ▼19.08
Media Library /wp-admin/upload.php3.27 ▲0.0437.44 ▼0.89
WP Job Google Location /wp-admin/options-general.php?page=ALGWJM3.2132.61

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Auto Location for WP Job Manager: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.34 ▼0.012.10 ▲0.1748.67 ▲1.92
Dashboard /wp-admin2,196 ▲165.48 ▼0.1197.22 ▲8.6841.73 ▲1.23
Posts /wp-admin/edit.php2,104 ▲71.95 ▼0.0440.60 ▲4.7235.97 ▼3.10
Add New Post /wp-admin/post-new.php1,529 ▲123.57 ▲0.42713.26 ▲5.8462.77 ▼1.33
Media Library /wp-admin/upload.php1,404 ▲74.21 ▲0.1098.24 ▼4.6643.40 ▼0.40
WP Job Google Location /wp-admin/options-general.php?page=ALGWJM8842.0330.2030.54

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

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=ALGWJM
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ALGWJM
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP 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)
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 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
Please fix the following attributes: You can take inspiration from this readme.txt

auto-location-for-wp-job-manager/wp-job-manager-auto-location-google.php 85% from 13 tests

"Auto Location for WP Job Manager" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("auto-location-for-wp-job-manager.php" instead of "wp-job-manager-auto-location-google.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin157 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34719155
JavaScript1102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity6.00
▷ Minimum class complexity5.00
▷ Maximum class complexity7.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin