10% company-vacancies

Code Review | Company vacancies

WordPress plugin Company vacancies scored10%from 54 tests.

About plugin

  • Plugin page: company-vacancies
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Jun 11, 2022
  • Latest release: Apr 19, 2023
  • Number of updates: 34
  • Update frequency: every 9.2 days
  • Top authors: viktorshugurov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /858 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/company-vacancies/public/class-wvcl-public.php+81
    syntax error, unexpected '->' (T_OBJECT_OPERATOR)

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.57ms] Passed 4 tests

This is a short check of server-side resources used by Company vacancies
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.95 ▲0.07
Dashboard /wp-admin3.31 ▼0.0453.10 ▼8.62
Posts /wp-admin/edit.php3.36 ▲0.0044.00 ▼4.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.14 ▼8.07
Media Library /wp-admin/upload.php3.23 ▲0.0036.22 ▼0.71

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Company vacancies
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲3914.37 ▼0.141.94 ▲0.2944.42 ▼2.37
Dashboard /wp-admin2,198 ▲215.57 ▲0.0483.21 ▼11.8837.39 ▼1.28
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0433.06 ▼3.1936.41 ▲0.21
Add New Post /wp-admin/post-new.php1,526 ▼223.27 ▲0.09627.22 ▼44.8851.95 ▼7.29
Media Library /wp-admin/upload.php1,400 ▼34.23 ▼0.0296.45 ▼2.7842.28 ▼0.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected '->' (T_OBJECT_OPERATOR) in wp-content/plugins/company-vacancies/public/class-wvcl-public.php on line 81

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: vacancy, headhunter, jobs

company-vacancies/wvcl.php 92% from 13 tests

The main file in "Company vacancies" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("company-vacancies.php" instead of "wvcl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin892 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12321693822
CSS213864
JavaScript24546

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity5.33
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods61
▷ Static methods23.28%
▷ Public methods5590.16%
▷ Protected methods00.00%
▷ Private methods69.84%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png60.31KB35.19KB▼ 41.65%
assets/screenshot-2.png60.50KB28.27KB▼ 53.28%