84% mas-wp-job-manager-company-reviews

Code Review | MAS Company Reviews For WP Job Manager

WordPress plugin MAS Company Reviews For WP Job Manager scored84%from 54 tests.

About plugin

  • Plugin page: mas-wp-job-manage...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Nov 18, 2019
  • Latest release: May 31, 2022
  • Number of updates: 11
  • Update frequency: every 84.5 days
  • Top authors: farookibrahim (63.64%)madrasthemes (36.36%)yousufansa (18.18%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /7,730 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.78ms] Passed 4 tests

Server-side resources used by MAS Company Reviews For WP Job Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.18 ▼10.30
Dashboard /wp-admin3.31 ▲0.0040.87 ▼6.41
Posts /wp-admin/edit.php3.36 ▲0.0049.60 ▲4.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.70 ▼5.01
Media Library /wp-admin/upload.php3.23 ▲0.0036.80 ▲2.59

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

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

Browser metrics Passed 4 tests

Checking browser requirements for MAS Company Reviews For WP Job Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.101.78 ▼0.0939.56 ▼10.29
Dashboard /wp-admin2,206 ▲185.90 ▲0.98111.08 ▲4.2642.55 ▼0.19
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0239.99 ▲3.3135.77 ▲2.19
Add New Post /wp-admin/post-new.php1,533 ▼023.32 ▲0.23645.51 ▼40.3350.17 ▼4.96
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0294.33 ▼7.2840.14 ▼6.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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)
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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mas-wp-job-manager-company-reviews/templates/job-review-moderate.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: job, company manager, company review, job listing, company listings review...

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

The primary PHP file in "MAS Company Reviews For WP Job Manager" version 1.0.2 is used by WordPress to initiate all plugin functionality
124 characters long description:
Leave reviews for listings in MAS WP Job Manager Company. Define review categories and choose the number of stars available.

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
Success! There were no dangerous files found in this plugin1,335 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP123388961,296
SVG40026
JavaScript2529
CSS4004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity14.33
▷ Minimum class complexity3.00
▷ Maximum class complexity31.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods49
▷ Static methods12.04%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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