84% zij-career-builder-jobs

Code Review | Zij CareerBuilder Jobs

WordPress plugin Zij CareerBuilder Jobs scored84%from 54 tests.

About plugin

  • Plugin page: zij-career-builde...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Aug 13, 2016
  • Latest release: Aug 13, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: zijsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /614 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼11.92ms] Passed 4 tests

Server-side resources used by Zij CareerBuilder Jobs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.74 ▼4.46
Dashboard /wp-admin3.36 ▲0.0158.63 ▼14.66
Posts /wp-admin/edit.php3.41 ▲0.0550.37 ▼1.15
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.44 ▼27.40
Media Library /wp-admin/upload.php3.28 ▲0.0542.83 ▲6.00

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_zijcareerbuilderjobs
theysaidso_admin_options

Browser metrics Passed 4 tests

Zij CareerBuilder Jobs: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.39 ▲0.131.98 ▲0.1348.07 ▲4.26
Dashboard /wp-admin2,198 ▲215.66 ▲0.0990.89 ▼5.2742.06 ▲1.16
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0141.50 ▲2.9036.94 ▲3.84
Add New Post /wp-admin/post-new.php1,526 ▼023.36 ▲0.22673.45 ▲11.7761.20 ▲6.35
Media Library /wp-admin/upload.php1,397 ▼34.14 ▼0.0598.93 ▼5.1145.27 ▼2.52

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_zijcareerbuilderjobs

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zij-career-builder-jobs/zij-careerbuilder-jobs.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
4 plugin tags: career builder job integration, career builder jobs, careerbuilder, career builder

zij-career-builder-jobs/zij-careerbuilder-jobs.php 92% from 13 tests

The main PHP file in "Zij CareerBuilder Jobs" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zij-career-builder-jobs.php" instead of "zij-careerbuilder-jobs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected144 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11140136
CSS1008

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity6.75
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/images/cb.png25.64KB5.50KB▼ 78.55%