84% careersitespro

Code Review | CareerSitesPro

WordPress plugin CareerSitesPro scored84%from 54 tests.

About plugin

  • Plugin page: careersitespro
  • Plugin version: 1.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 12, 2020
  • Latest release: Jan 10, 2023
  • Number of updates: 39
  • Update frequency: every 26.5 days
  • Top authors: careersitepro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /895 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.48ms] Passed 4 tests

An overview of server-side resources used by CareerSitesPro
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1045.09 ▼0.02
Dashboard /wp-admin3.39 ▲0.0954.46 ▲3.42
Posts /wp-admin/edit.php3.49 ▲0.1353.73 ▲6.94
Add New Post /wp-admin/post-new.php5.99 ▲0.1089.78 ▼12.25
Media Library /wp-admin/upload.php3.31 ▲0.0847.08 ▲13.16
Settings /wp-admin/admin.php?page=csp_settings3.3845.89
CareerSitesPro /wp-admin/admin.php?page=csp_home3.2943.38

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options
show_job_location
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for CareerSitesPro
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.28 ▼0.072.32 ▲0.5141.91 ▼5.80
Dashboard /wp-admin2,227 ▲505.65 ▼0.0285.04 ▼13.5244.45 ▲2.00
Posts /wp-admin/edit.php2,129 ▲292.02 ▼0.0136.16 ▼1.0536.34 ▼0.77
Add New Post /wp-admin/post-new.php1,550 ▲2422.94 ▼0.08680.96 ▲5.9260.25 ▲2.37
Media Library /wp-admin/upload.php1,429 ▲294.12 ▼0.05110.67 ▲3.7146.69 ▲4.09
Settings /wp-admin/admin.php?page=csp_settings2,2392.8880.9935.35
CareerSitesPro /wp-admin/admin.php?page=csp_home8881.9330.7225.67

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • show_job_location
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/careersitespro/public/render_detail_page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/careersitespro/admin/render_home_page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/careersitespro/public/render_shortcode.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/careersitespro/public/render_listing_page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/careersitespro/admin/render_setting_page.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: careers, jobs, openings

careersitespro/careersitespro.php 92% from 13 tests

The main PHP script in "CareerSitesPro" version 1.3.8 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected10,479 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP102231755,428
SVG141314,121
CSS613128854
JavaScript218576

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.50
▷ Minimum class complexity3.00
▷ Maximum class complexity30.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/isolved.png5.12KB1.71KB▼ 66.58%
public/images/applicant-pro.png5.53KB1.04KB▼ 81.24%
assets/banner-772x250.png117.88KB60.97KB▼ 48.28%
public/images/applicant-list.png3.48KB1.20KB▼ 65.59%