84% mas-wp-job-manager-company

Code Review | MAS Companies For WP Job Manager

WordPress plugin MAS Companies For WP Job Manager scored 84% from 54 tests.

About plugin

  • Plugin page: mas-wp-job-manage...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9
  • WordPress version: 6.3.1
  • First release: Nov 13, 2019
  • Latest release: Apr 7, 2022
  • Number of updates: 19
  • Update frequency: every 49.1 days
  • Top authors: madrasthemes (42.11%)farookibrahim (36.84%)yousufansa (31.58%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active / 10,818 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.11ms] Passed 4 tests

Analyzing server-side resources used by MAS Companies For WP Job Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.48 ▼3.64
Dashboard /wp-admin3.34 ▲0.0346.06 ▼3.23
Posts /wp-admin/edit.php3.39 ▲0.0343.53 ▼5.89
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.54 ▼11.67
Media Library /wp-admin/upload.php3.26 ▲0.0337.88 ▲1.38

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for MAS Companies For WP Job Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.131.67 ▼0.2042.56 ▼0.29
Dashboard /wp-admin2,203 ▲125.83 ▼0.0997.97 ▼8.7936.33 ▼12.30
Posts /wp-admin/edit.php2,086 ▼62.04 ▲0.0135.88 ▼6.6830.58 ▼3.89
Add New Post /wp-admin/post-new.php1,533 ▲1922.77 ▼0.77599.16 ▼29.2548.99 ▼4.71
Media Library /wp-admin/upload.php1,388 ▲94.23 ▼0.0998.84 ▲1.1044.64 ▲1.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mas-wp-job-manager-company/templates/archive-company.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mas-wp-job-manager-company/templates/single-company.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mas-wp-job-manager-company/includes/mas-wpjmc-template-hooks.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 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
7 plugin tags: company, job, company manager, companies, company listings...

mas-wp-job-manager-company/mas-wp-job-manager-company.php Passed 13 tests

Analyzing the main PHP file in "MAS Companies For WP Job Manager" version 1.0.6
73 characters long description:
This plugin helps to create a custom post type company for WP Job Manager

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,779 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP307261,0833,327
Sass7660398
JavaScript68152
CSS2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity27.25
▷ Minimum class complexity3.00
▷ Maximum class complexity108.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes16.25%
▷ Concrete classes1593.75%
▷ Final classes00.00%
Methods116
▷ Static methods2622.41%
▷ Public methods10086.21%
▷ Protected methods108.62%
▷ Private methods65.17%
Functions44
▷ Named functions44100.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
No PNG files were detected