58% edoc-employee-application

Code Review | eDoc Employee Job Application - Best WordPress Job Manager for Employees

WordPress plugin eDoc Employee Job Application - Best WordPress Job Manager for Employees scored58%from 54 tests.

About plugin

  • Plugin page: edoc-employee-app...
  • Plugin version: 1.13
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.7
  • WordPress version: 6.3.1
  • First release: Nov 28, 2016
  • Latest release: Mar 12, 2021
  • Number of updates: 18
  • Update frequency: every 86.4 days
  • Top authors: jerodmoore (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,157 total downloads

Benchmarks

Plugin footprint 48% 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.73MB] [CPU: ▼31.20ms] Passed 4 tests

Server-side resources used by eDoc Employee Job Application - Best WordPress Job Manager for Employees
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2341.06 ▼1.11
Dashboard /wp-admin3.22 ▼0.0929.27 ▼20.86
Posts /wp-admin/edit.php3.22 ▼0.1427.22 ▼25.46
Add New Post /wp-admin/post-new.php3.22 ▼2.6725.76 ▼74.44
Media Library /wp-admin/upload.php3.22 ▼0.0127.82 ▼4.04

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 348 new files
Database: 1 new table, 6 new options
New tables
wp_edoc_form_saved
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for eDoc Employee Job Application - Best WordPress Job Manager for Employees
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.19 ▼1.484.61 ▲2.6342.33 ▲1.73
Dashboard /wp-admin2,209 ▲185.83 ▼0.05112.93 ▲10.3176.30 ▲29.05
Posts /wp-admin/edit.php2,107 ▲181.98 ▼0.0136.71 ▼0.8633.54 ▼4.74
Add New Post /wp-admin/post-new.php1,536 ▲1723.10 ▼0.19758.02 ▲107.1863.56 ▲10.26
Media Library /wp-admin/upload.php1,403 ▲184.12 ▼0.13109.31 ▲4.9644.39 ▼1.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/edoc-employee-application/main-core.php+15
    Undefined index: action
  • Zombie tables were found after uninstall: 1 table
    • wp_edoc_form_saved
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/edoc-employee-application/dompdf/vendor/sabberworm/php-css-parser/tests/quickdump.php
  • 131× 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/edoc-employee-application/dompdf/vendor/sabberworm/php-css-parser/tests/Sabberworm/CSS/RuleSet/LenientParsingTest.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Sabberworm\\CSS\\Value\\CSSFunction' not found in wp-content/plugins/edoc-employee-application/dompdf/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/Color.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Dompdf\\Renderer\\Block' not found in wp-content/plugins/edoc-employee-application/dompdf/vendor/dompdf/dompdf/src/Renderer/TableCell.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/edoc-employee-application/dompdf/vendor/phenx/php-font-lib/src/FontLib/OpenType/File.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/edoc-employee-application/dompdf/vendor/phenx/php-svg-lib/src/Svg/Document.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/edoc-employee-application/dompdf/vendor/phenx/php-font-lib/src/FontLib/EOT/File.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/edoc-employee-application/dompdf/vendor/phenx/php-font-lib/src/FontLib/WOFF/File.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/edoc-employee-application/dompdf/vendor/dompdf/dompdf/src/FrameReflower/ListBullet.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/edoc-employee-application/dompdf/vendor/phenx/php-font-lib/src/FontLib/Header.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/edoc-employee-application/dompdf/vendor/phenx/php-font-lib/src/FontLib/Table/Type/maxp.php:17

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 96% from 29 tests

readme.txt Passed 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
6 plugin tags: job manager, hiring, employment application, job, job listing...

edoc-employee-application/main-core.php 92% from 13 tests

The principal PHP file in "eDoc Employee Job Application - Best WordPress Job Manager for Employees" v. 1.13 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("edoc-employee-application.php" instead of "main-core.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin39,843 lines of code in 259 files:
LanguageFilesBlank linesComment linesLines of code
PHP2028,43015,33636,951
CSS34177731,380
Markdown62550909
JSON600336
XML532186
YAML312245
HTML10017
JavaScript11011
SVG1008

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
The following items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 652)
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity35.08
▷ Minimum class complexity1.00
▷ Maximum class complexity765.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity652.00
Code structure
Namespaces34
Interfaces5
Traits0
Classes182
▷ Abstract classes126.59%
▷ Concrete classes17093.41%
▷ Final classes00.00%
Methods1,992
▷ Static methods864.32%
▷ Public methods1,70385.49%
▷ Protected methods1929.64%
▷ Private methods974.87%
Functions25
▷ Named functions1040.00%
▷ Anonymous functions1560.00%
Constants161
▷ Global constants63.73%
▷ Class constants15596.27%
▷ Public constants155100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-48-config.png4.04KB2.30KB▼ 43.15%
images/logoNewSquare.png0.75KB0.68KB▼ 9.03%
images/add.png0.72KB0.75KB0.00%
images/delete.png0.70KB0.72KB0.00%
images/flag.png3.75KB1.26KB▼ 66.32%