74% career-work-with-us

Code Review | Career-Work With Us

WordPress plugin Career-Work With Us scored74%from 54 tests.

About plugin

  • Plugin page: career-work-with-us
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 26, 2018
  • Latest release: Feb 26, 2018
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: sumuix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,419 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.61ms] Passed 4 tests

An overview of server-side resources used by Career-Work With Us
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0847.33 ▲8.34
Dashboard /wp-admin3.38 ▲0.0756.84 ▲3.95
Posts /wp-admin/edit.php3.43 ▲0.0751.26 ▲3.60
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.55 ▼15.18
Media Library /wp-admin/upload.php3.30 ▲0.0739.18 ▲5.19
Career /wp-admin/edit.php?post_type=sxcareer3.3437.53
Add New /wp-admin/post-new.php?post_type=sxcareer3.4251.28

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: 1 new table, 6 new options
New tables
sc_sumuixcareer
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Career-Work With Us: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.25 ▼0.371.76 ▲0.2041.70 ▼0.99
Dashboard /wp-admin2,219 ▲395.54 ▼0.1082.96 ▼12.9937.07 ▼4.89
Posts /wp-admin/edit.php2,127 ▲271.96 ▼0.0736.50 ▲1.3532.49 ▼3.78
Add New Post /wp-admin/post-new.php1,558 ▲3018.40 ▼4.59660.63 ▼28.4861.87 ▲2.84
Media Library /wp-admin/upload.php1,427 ▲304.24 ▲0.00104.47 ▼3.7342.38 ▼3.21
Career /wp-admin/edit.php?post_type=sxcareer1,1001.9330.8533.97
Add New /wp-admin/post-new.php?post_type=sxcareer2,1757.56166.3663.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • sc_sumuixcareer
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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
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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/career-work-with-us/templates/template-handler-sx.php
    • > /wp-content/plugins/career-work-with-us/sumuix-career.php

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: career page, job posts, career posts

career-work-with-us/sumuix-career.php 85% from 13 tests

"Career-Work With Us" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("career-work-with-us.php" instead of "sumuix-career.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin431 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP54221361
CSS111070

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.39
Average class complexity13.33
▷ Minimum class complexity5.00
▷ Maximum class complexity30.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/images/fav.png7.15KB2.81KB▼ 60.69%