89% polylang-wp-job-manager-companies

Code Review | WP Job Manager Companies - Polylang Current Language

WordPress plugin WP Job Manager Companies - Polylang Current Language scored89%from 54 tests.

About plugin

  • Plugin page: polylang-wp-job-m...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1
  • WordPress version: 6.3.1
  • First release: Jun 1, 2019
  • Latest release: Jun 1, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: walledmahmoud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /510 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
Installer ran successfully

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

Analyzing server-side resources used by WP Job Manager Companies - Polylang Current Language
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0255.51 ▲10.29
Dashboard /wp-admin3.32 ▲0.0148.12 ▼3.78
Posts /wp-admin/edit.php3.37 ▲0.0153.37 ▲3.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.81 ▼7.08
Media Library /wp-admin/upload.php3.24 ▲0.0136.64 ▼0.26

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP Job Manager Companies - Polylang Current Language
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.251.68 ▼0.0242.21 ▼6.52
Dashboard /wp-admin2,192 ▲155.63 ▲0.0284.90 ▼7.1039.83 ▼5.84
Posts /wp-admin/edit.php2,103 ▲61.98 ▲0.0038.47 ▼1.7733.88 ▼4.53
Add New Post /wp-admin/post-new.php1,531 ▲323.39 ▲0.55668.38 ▲19.3963.84 ▲9.30
Media Library /wp-admin/upload.php1,400 ▼34.20 ▲0.0396.66 ▼8.1248.71 ▲4.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === polylang-wp-job-manager-companies === )
  • Screenshots: Add descriptions for screenshots #1, #2 in polylang-wp-job-manager-companies/assets to your readme.txt
You can look at the official readme.txt

polylang-wp-job-manager-companies/wp-job-manager-companies-polylang.php 77% from 13 tests

The main PHP script in "WP Job Manager Companies - Polylang Current Language" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • 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 ("polylang-wp-job-manager-companies.php" instead of "wp-job-manager-companies-polylang.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected187 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP169123167
Markdown117020

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin