84% job-listings-job-alert

Code Review | Job Listings - Job Alerts

WordPress plugin Job Listings - Job Alerts scored84%from 54 tests.

About plugin

  • Plugin page: job-listings-job-...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7.5
  • WordPress version: 6.3.1
  • First release: May 29, 2017
  • Latest release: May 29, 2017
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: nootheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /962 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.62ms] Passed 4 tests

Server-side resources used by Job Listings - Job Alerts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.42 ▼11.58
Dashboard /wp-admin3.36 ▲0.0552.88 ▼1.72
Posts /wp-admin/edit.php3.41 ▲0.0557.36 ▼0.34
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.34 ▼24.85
Media Library /wp-admin/upload.php3.28 ▲0.0541.11 ▲2.92

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Job Listings - Job Alerts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.19 ▼0.161.75 ▼0.1946.30 ▲1.18
Dashboard /wp-admin2,189 ▲125.50 ▼0.0483.59 ▼17.2237.89 ▲1.59
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0339.37 ▼2.1935.97 ▼1.91
Add New Post /wp-admin/post-new.php1,535 ▲917.95 ▼5.57618.05 ▼6.2168.29 ▲7.25
Media Library /wp-admin/upload.php1,394 ▼34.24 ▲0.01100.04 ▼6.6443.68 ▲0.61

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 detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/job-listings-job-alert/includes/class-job-alert-hander.php:5

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: employment, job board, job listings, job management, job manager

job-listings-job-alert/job-listings-job-alert.php Passed 13 tests

This is the main PHP file of "Job Listings - Job Alerts" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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
No dangerous file extensions were detected764 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP816475764

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity34.00
▷ Minimum class complexity26.00
▷ Maximum class complexity42.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods738.89%
▷ Public methods1688.89%
▷ Protected methods00.00%
▷ Private methods211.11%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin