77% qkly-jobs-listing

Code Review | Qkly Job Listing

WordPress plugin Qkly Job Listing scored 77% from 54 tests.

About plugin

  • Plugin page: qkly-jobs-listing
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.2
  • WordPress version: 5.9.2
  • First release: Jun 5, 2021
  • Latest release: Jun 15, 2021
  • Number of updates: 12
  • Update frequency: every 1.1 days
  • Top authors: Kabita (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 155 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼289.43ms] Passed 4 tests

An overview of server-side resources used by Qkly Job Listing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3357.22 ▲4.64
Dashboard /wp-admin3.68 ▲0.2834.97 ▲2.71
Posts /wp-admin/edit.php3.97 ▲0.3340.44 ▲4.35
Add New Post /wp-admin/post-new.php7.21 ▲0.2493.78 ▼1,165.13
Media Library /wp-admin/upload.php3.62 ▲0.3324.51 ▲0.36

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 1,333 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Qkly Job Listing
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,937 ▲18316.53 ▲0.8514.21 ▲7.413.03 ▲0.15
Dashboard /wp-admin2,912 ▲616.15 ▼0.04117.69 ▼20.77161.55 ▼0.72
Posts /wp-admin/edit.php2,708 ▲203.24 ▲0.0163.42 ▼2.92145.24 ▲6.42
Add New Post /wp-admin/post-new.php1,674 ▲1316.29 ▼5.04411.09 ▼28.56158.58 ▼3.19
Media Library /wp-admin/upload.php1,718 ▲205.54 ▲0.02144.65 ▲7.02187.02 ▼0.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/qkly-jobs-listing/src/vendor/symfony/translation/Resources/bin/translation-status.php
  • 234× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface' not found in wp-content/plugins/qkly-jobs-listing/src/vendor/symfony/http-foundation/Session/Flash/FlashBagInterface.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\AbstractSessionHandler' not found in wp-content/plugins/qkly-jobs-listing/src/vendor/symfony/http-foundation/Session/Storage/Handler/MemcachedSessionHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException' not found in wp-content/plugins/qkly-jobs-listing/src/vendor/symfony/http-foundation/File/Exception/UploadException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\Constraint\\Constraint' not found in wp-content/plugins/qkly-jobs-listing/src/vendor/symfony/http-foundation/Test/Constraint/ResponseIsSuccessful.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\AbstractSessionHandler' not found in wp-content/plugins/qkly-jobs-listing/src/vendor/symfony/http-foundation/Session/Storage/Handler/PdoSessionHandler.php:41
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon\\CarbonConverterInterface' not found in wp-content/plugins/qkly-jobs-listing/src/vendor/nesbot/carbon/src/Carbon/CarbonInterval.php:179
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon\\Exceptions\\UnitException' not found in wp-content/plugins/qkly-jobs-listing/src/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownUnitException.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface' not found in wp-content/plugins/qkly-jobs-listing/src/vendor/symfony/http-foundation/Session/SessionBagProxy.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\Constraint\\Constraint' not found in wp-content/plugins/qkly-jobs-listing/src/vendor/symfony/http-foundation/Test/Constraint/ResponseFormatSame.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/qkly-jobs-listing/src/vendor/symfony/translation/Dumper/PhpFileDumper.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Screenshots: A description for screenshot #4 is missing in qkly-jobs-listing/assets to your readme.txt
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

qkly-jobs-listing/qkly-job-listing.php 85% from 13 tests

The main PHP file in "Qkly Job Listing" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("qkly-jobs-listing.php" instead of "qkly-job-listing.php")

Code Analysis 3% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Almost there! Just fix the following issues
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/qkly-jobs-listing/src/vendor/nesbot/carbon/bin/carbon.bat
62,400 lines of code in 1,102 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,02110,11135,42349,673
Markdown231,35404,144
XSD392482,803
JavaScript4491062,625
JSON19001,702
CSS561671,159
SVG2000148
YAML425087
XML10046
make1409
DOS Batch1004

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 138)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity13.92
▷ Minimum class complexity1.00
▷ Maximum class complexity296.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity138.00
Code structure
Namespaces50
Interfaces55
Traits28
Classes282
▷ Abstract classes103.55%
▷ Concrete classes27296.45%
▷ Final classes4918.01%
Methods3,008
▷ Static methods52317.39%
▷ Public methods2,57085.44%
▷ Protected methods1926.38%
▷ Private methods2468.18%
Functions431
▷ Named functions11526.68%
▷ Anonymous functions31673.32%
Constants268
▷ Global constants72.61%
▷ Class constants26197.39%
▷ Public constants25095.79%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin