10% chameleon-jobs

Code Review | Chameleoni Jobs

WordPress plugin Chameleoni Jobs scored10%from 54 tests.

About plugin

  • Plugin page: chameleon-jobs
  • Plugin version: 2.4.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Jun 1, 2015
  • Latest release: Apr 28, 2023
  • Number of updates: 95
  • Update frequency: every 30.4 days
  • Top authors: Chameleoni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,060 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

Server metrics [RAM: ▼1.97MB] [CPU: ▼53.59ms] Passed 4 tests

This is a short check of server-side resources used by Chameleoni Jobs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.31 ▼31.92
Dashboard /wp-admin2.05 ▼1.305.46 ▼54.00
Posts /wp-admin/edit.php2.05 ▼1.314.97 ▼39.83
Add New Post /wp-admin/post-new.php2.05 ▼3.845.16 ▼88.59
Media Library /wp-admin/upload.php2.05 ▼1.187.06 ▼25.31
Jobs Setting /wp-admin/admin.php?page=chameleon-jobs/feed_setup.php2.056.00
Job Listing /wp-admin/admin.php?page=chameleon-jobs/feed_setup.php/JobListing2.055.31

Server storage [IO: ▲0.21MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: 2 new tables, 6 new options
New tables
wp_jobs_settings
wp_jobs
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Chameleoni Jobs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲3114.43 ▲0.251.70 ▼0.1743.51 ▲4.22
Dashboard /wp-admin2,224 ▲445.59 ▼0.0683.48 ▼5.7984.65 ▲37.83
Posts /wp-admin/edit.php2,126 ▲261.97 ▼0.0532.59 ▼2.2235.14 ▼2.43
Add New Post /wp-admin/post-new.php1,701 ▲17520.73 ▼2.56673.33 ▲16.6952.54 ▼11.19
Media Library /wp-admin/upload.php1,429 ▲264.17 ▲0.0299.37 ▲1.8476.07 ▲34.77
Jobs Setting /wp-admin/admin.php?page=chameleon-jobs/feed_setup.php1,1262.0022.4226.84
Job Listing /wp-admin/admin.php?page=chameleon-jobs/feed_setup.php/JobListing7852.0022.9726.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_add_inline_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the prefix-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie tables were found after uninstall: 1 table
    • wp_jobs
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chameleon-jobs/feed_setup.php/JobListing
    • > User notice in wp-includes/functions.php+5905
    Function wp_add_inline_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the prefix-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chameleon-jobs/feed_setup.php/JobListing
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/admin.php?page=chameleon-jobs/feed_setup.php
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
    • > GET request to /wp-admin/admin.php?page=chameleon-jobs/feed_setup.php
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/chameleon-jobs/job_listing_admin_page.php
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chameleon-jobs/joblogin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/chameleon-jobs/jobs_list.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/chameleon-jobs/profile.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/chameleon-jobs/jobforgetpass.php:145
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/chameleon-jobs/job_apply.php:6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/chameleon-jobs/job_details.php:6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/chameleon-jobs/job_admin.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/chameleon-jobs/feed_setup.php:18
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/chameleon-jobs/job_details.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chameleon-jobs/jobregister.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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: recruitment, chameleoni, jobs

chameleon-jobs/feed_setup.php 92% from 13 tests

The entry point to "Chameleoni Jobs" version 2.4.8 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("chameleon-jobs.php" instead of "feed_setup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected3,856 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP136964783,708
CSS2180148

PHP code Passed 2 tests

A brief analysis 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.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin