78% wpgenious-job-listing

Code Review | WpGenius Job Listing

WordPress plugin WpGenius Job Listing scored78%from 54 tests.

About plugin

  • Plugin page: wpgenious-job-lis...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8.1
  • WordPress version: 6.3.1
  • First release: Mar 3, 2021
  • Latest release: Nov 20, 2021
  • Number of updates: 25
  • Update frequency: every 10.5 days
  • Top authors: wpgenious (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,208 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼4.05ms] Passed 4 tests

A check of server-side resources used by WpGenius Job Listing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1636.26 ▼3.03
Dashboard /wp-admin3.45 ▲0.1446.56 ▼5.40
Posts /wp-admin/edit.php3.57 ▲0.2145.26 ▼3.23
Add New Post /wp-admin/post-new.php6.11 ▲0.2392.02 ▲4.32
Media Library /wp-admin/upload.php3.37 ▲0.1432.98 ▼4.55
Applications /wp-admin/edit.php?post_type=job_application3.4236.59
Settings /wp-admin/edit.php?post_type=job_listing&page=wpgenious-job-listing3.3930.02
Job Listing /wp-admin/edit.php?post_type=job_listing3.4229.90
New Job /wp-admin/post-new.php?post_type=job_listing6.1078.30

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 72 new files
Database: no new tables, 11 new options
New WordPress options
can_compress_scripts
wpgenious_job_listing_register_default_settings
widget_recent-comments
widget_wp-genius-similar-jobs
widget_recent-posts
widget_theysaidso_widget
wpgenious-job-listing
db_upgraded
widget_wp-genius-latest-jobs
theysaidso_admin_options
...

Browser metrics Passed 4 tests

A check of browser resources used by WpGenius Job Listing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲12013.83 ▼0.399.32 ▲7.3942.71 ▼1.86
Dashboard /wp-admin2,218 ▲385.68 ▲0.0686.15 ▼15.0736.07 ▼9.84
Posts /wp-admin/edit.php2,119 ▲192.33 ▲0.3345.24 ▲8.1437.84 ▲1.28
Add New Post /wp-admin/post-new.php1,562 ▲3122.86 ▼0.18649.11 ▲15.3435.87 ▼20.23
Media Library /wp-admin/upload.php1,426 ▲264.26 ▲0.0397.70 ▼6.5042.13 ▼2.35
Contact Us /wp-admin/edit.php?post_type=job_listing&page=#280.420.075.22
Applications /wp-admin/edit.php?post_type=job_application1,1692.2642.7529.79
Settings /wp-admin/edit.php?post_type=job_listing&page=wpgenious-job-listing1,0091.8925.5130.84
Job Listing /wp-admin/edit.php?post_type=job_listing1,1782.1830.8527.26
New Job /wp-admin/post-new.php?post_type=job_listing6,34221.79917.2038.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • widget_recent-comments
    • db_upgraded
    • wpgenious_job_listing_register_default_settings
    • widget_recent-posts
    • wpgenious-job-listing
    • theysaidso_admin_options
    • widget_wp-genius-similar-jobs
    • widget_wp-genius-latest-jobs
    • can_compress_scripts
    • wpgenious-job-listing_flush_rewrite_rules
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      require_once(WPGENIOUS_JOB_LISTING_INC_DIRclass-wpgenious-widgets.php): failed to open stream: No such file or directory in wp-content/plugins/wpgenious-job-listing/src/includes/widgets/wpgenious-similar-jobs.php on line 3
    • > PHP Warning
      require_once(WPGENIOUS_JOB_LISTING_PUBLIC_DIRclass/class-wpgenious-job-listing-notification.php): failed to open stream: No such file or directory in wp-content/plugins/wpgenious-job-listing/src/public/class/class-wpgenious-job-listing-application.php on line 18
    • > PHP Fatal error
      require_once(): Failed opening required 'WPGENIOUS_JOB_LISTING_INC_DIRclass-wpgenious-widgets.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpgenious-job-listing/src/includes/class-wpgenious-job-listing.php on line 31
    • > PHP Fatal error
      require_once(): Failed opening required 'WPGENIOUS_JOB_LISTING_PUBLIC_DIRclass/class-wpgenious-job-listing-notification.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpgenious-job-listing/src/public/class/class-wpgenious-job-listing-application.php on line 18
    • > PHP Warning
      Use of undefined constant WPGENIOUS_JOB_LISTING_INC_DIR - assumed 'WPGENIOUS_JOB_LISTING_INC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpgenious-job-listing/src/includes/widgets/wpgenious-similar-jobs.php on line 3
    • > PHP Warning
      Use of undefined constant WPGENIOUS_JOB_LISTING_INC_DIR - assumed 'WPGENIOUS_JOB_LISTING_INC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpgenious-job-listing/src/includes/class-wpgenious-job-listing.php on line 31
    • > PHP Warning
      Use of undefined constant WPGENIOUS_JOB_LISTING_INC_DIR - assumed 'WPGENIOUS_JOB_LISTING_INC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpgenious-job-listing/src/includes/class-wpgenious-job-listing-activator.php on line 24
    • > PHP Warning
      Use of undefined constant WPGENIOUS_JOB_LISTING_INC_DIR - assumed 'WPGENIOUS_JOB_LISTING_INC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpgenious-job-listing/src/includes/widgets/wpgenious-latest-jobs.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'WPGENIOUS_JOB_LISTING_INC_DIRclass-wpgenious-job-listing-tools.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpgenious-job-listing/src/includes/class-wpgenious-job-listing-activator.php on line 24
    • > PHP Warning
      Use of undefined constant WPGENIOUS_JOB_LISTING_PUBLIC_DIR - assumed 'WPGENIOUS_JOB_LISTING_PUBLIC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpgenious-job-listing/src/public/class/class-wpgenious-job-listing-application.php on line 18

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=job_listing&page=#
    • > Network (severe)
    wp-admin/edit.php?post_type=job_listing&page=# - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: You can look at the official readme.txt

wpgenious-job-listing/wpgenious-job-listing.php Passed 13 tests

"WpGenius Job Listing" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
139 characters long description:
Wpgenious job listing it’s a simple and powerful wordpress plugin useful for adding job listing functionality to your job career website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin8,988 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP385761,1453,468
CSS412242,970
JSON200838
PO File2369453792
SVG100686
JavaScript34028234

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity17.82
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods124
▷ Static methods3024.19%
▷ Public methods10887.10%
▷ Protected methods00.00%
▷ Private methods1612.90%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.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
assets/img/logo.png5.10KB1.30KB▼ 74.58%