83% smyles-wp-job-manager-field-editor-import

Code Review | WP All Import - WP Job Manager Field Editor Add-On

WordPress plugin WP All Import - WP Job Manager Field Editor Add-On scored83%from 54 tests.

About plugin

  • Plugin page: smyles-wp-job-man...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.2
  • WordPress version: 6.3.1
  • First release: Nov 6, 2018
  • Latest release: Aug 8, 2019
  • Number of updates: 9
  • Update frequency: every 30.7 days
  • Top authors: tripflex (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by WP All Import - WP Job Manager Field Editor Add-On
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.20 ▼3.59
Dashboard /wp-admin3.32 ▲0.0245.88 ▼2.69
Posts /wp-admin/edit.php3.37 ▲0.0150.34 ▲0.85
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.21 ▼4.72
Media Library /wp-admin/upload.php3.24 ▲0.0135.70 ▼0.36

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP All Import - WP Job Manager Field Editor Add-On
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.35 ▲0.041.56 ▼0.1038.02 ▼6.65
Dashboard /wp-admin2,211 ▲315.56 ▼0.04106.16 ▲13.0840.04 ▼0.36
Posts /wp-admin/edit.php2,117 ▲142.02 ▼0.0038.65 ▼2.3437.27 ▲1.46
Add New Post /wp-admin/post-new.php1,554 ▲2822.89 ▼0.43598.71 ▼87.1760.29 ▼4.18
Media Library /wp-admin/upload.php1,416 ▲164.17 ▲0.0194.74 ▼15.2539.76 ▼9.43

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smyles-wp-job-manager-field-editor-import/wp-job-manager-field-editor-addon.php:150

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
The official readme.txt might help

smyles-wp-job-manager-field-editor-import/wp-job-manager-field-editor-addon.php 77% from 13 tests

"WP All Import - WP Job Manager Field Editor Add-On" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: Required version must match the one declared in readme.txt ("4.7.0" instead of "4.7")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smyles-wp-job-manager-field-editor-import.php" instead of "wp-job-manager-field-editor-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,269 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP54014411,269

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity53.80
▷ Minimum class complexity1.00
▷ Maximum class complexity204.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods73
▷ Static methods11.37%
▷ Public methods73100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.45MB with 0.30MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/wp_job_manager.png3.25KB1.54KB▼ 52.78%
screenshot-2.png252.99KB72.12KB▼ 71.49%
screenshot-1.png204.90KB54.35KB▼ 73.48%