90% job-listings-location

Code Review | Job Listings - Location

WordPress plugin Job Listings - Location scored 90% from 54 tests.

About plugin

  • Plugin page: job-listings-loca...
  • 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 / 793 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.01MB] [CPU: ▼7.82ms] Passed 4 tests

An overview of server-side resources used by Job Listings - Location
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.41 ▼9.05
Dashboard /wp-admin3.32 ▲0.0244.05 ▼7.43
Posts /wp-admin/edit.php3.37 ▲0.0147.97 ▲1.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.00 ▼15.29
Media Library /wp-admin/upload.php3.24 ▲0.0135.61 ▲0.49

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Job Listings - Location
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.201.54 ▼0.2542.94 ▼3.32
Dashboard /wp-admin2,206 ▲184.85 ▼0.05111.72 ▼5.9945.36 ▲1.88
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0135.78 ▼2.4733.92 ▼1.59
Add New Post /wp-admin/post-new.php1,514 ▼1917.62 ▼5.71674.80 ▼1.7753.14 ▼7.17
Media Library /wp-admin/upload.php1,388 ▲64.22 ▲0.0095.37 ▼0.7542.23 ▼0.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: job management, job board, job listings, job manager, employment

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

This is the main PHP file of "Job Listings - Location" 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 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin477 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP415232403
JavaScript28046
CSS19028

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin