94% df-job-manager

Code Review | Job Manager With Structured Data

WordPress plugin Job Manager With Structured Data scored 94% from 54 tests.

About plugin

  • Plugin page: df-job-manager
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.2.1
  • WordPress version: 5.9.2
  • First release: Jun 10, 2019
  • Latest release: Jun 10, 2019
  • Number of updates: 2
  • Update frequency: every 106.5 days
  • Top authors: diviframework (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 516 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.86MB] [CPU: ▼298.49ms] Passed 4 tests

This is a short check of server-side resources used by Job Manager With Structured Data
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.42 ▲0.9071.20 ▲14.15
Dashboard /wp-admin4.27 ▲0.8741.26 ▲6.31
Posts /wp-admin/edit.php4.50 ▲0.86101.74 ▲64.79
Add New Post /wp-admin/post-new.php7.83 ▲0.8698.73 ▼1,209.06
Media Library /wp-admin/upload.php4.15 ▲0.8628.22 ▼5.36
Add New /wp-admin/post-new.php?post_type=df-job7.8295.45
All Jobs /wp-admin/edit.php?post_type=df-job4.2636.10
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins4.2228.26
Job Categories /wp-admin/edit-tags.php?taxonomy=df-job-taxonomy&post_type=df-job4.1529.35

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 152 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Job Manager With Structured Data
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,864 ▲12715.73 ▼0.266.34 ▲0.082.21 ▼0.56
Dashboard /wp-admin2,971 ▲1136.15 ▼0.12121.78 ▼15.90174.32 ▼24.64
Posts /wp-admin/edit.php2,772 ▲843.26 ▲0.0264.88 ▲0.78162.01 ▲15.07
Add New Post /wp-admin/post-new.php1,746 ▲10721.13 ▼0.33484.48 ▲60.87168.88 ▲3.74
Media Library /wp-admin/upload.php1,784 ▲895.60 ▲0.08142.27 ▼8.20274.70 ▲54.35
Add New /wp-admin/post-new.php?post_type=df-job9,41218.03622.57141.99
All Jobs /wp-admin/edit.php?post_type=df-job1,4803.1763.91198.57
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins1,2892.4456.24129.84
Job Categories /wp-admin/edit-tags.php?taxonomy=df-job-taxonomy&post_type=df-job1,6712.9358.55129.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 28× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/df-job-manager/vendor/pimple/pimple/src/Pimple/Tests/Psr11/ServiceLocatorTest.php:39
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/df-job-manager/vendor/pimple/pimple/src/Pimple/Exception/FrozenServiceException.php:36
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/df-job-manager/vendor/pimple/pimple/src/Pimple/Psr11/ServiceLocator.php:38
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/df-job-manager/resources/views/shortcodes/df-job.php on line 2
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/df-job-manager/vendor/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/df-job-manager/libraries/cmb2-conditionals-1.0.4/example-functions.php:26
    • > PHP Notice
      Trying to get property 'post_title' of non-object in wp-content/plugins/df-job-manager/resources/views/shortcodes/df-job.php on line 2
    • > PHP Warning
      Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/df-job-manager/libraries/cmb2-conditionals-1.0.4/example-functions.php on line 18
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/df-job-manager/vendor/pimple/pimple/src/Pimple/Exception/InvalidServiceIdentifierException.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/df-job-manager/libraries/TGM-Plugin-Activation-2.6.1/class-tgm-plugin-activation.php:2165

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
3 plugin tags: structured data, job listing, seo

df-job-manager/df-job-manager.php 92% from 13 tests

The principal PHP file in "Job Manager With Structured Data" v. 1.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected13,208 lines of code in 119 files:
LanguageFilesBlank linesComment linesLines of code
PHP801,3513,0046,065
PO File171,4491,9934,842
C118847879
Markdown71980809
JSON300161
C/C++ Header24046132
reStructuredText19413597
Sass38081
JavaScript115052
m41111141
YAML15035
XML11013
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.21
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces9
Interfaces4
Traits0
Classes48
▷ Abstract classes00.00%
▷ Concrete classes48100.00%
▷ Final classes24.17%
Methods300
▷ Static methods113.67%
▷ Public methods27290.67%
▷ Protected methods268.67%
▷ Private methods20.67%
Functions91
▷ Named functions1213.19%
▷ Anonymous functions7986.81%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/images/df-logo.png1.13KB1.06KB▼ 5.88%
resources/images/location-on.png0.45KB0.80KB0.00%