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: ▲1.11MB] [CPU: ▲5.64ms] Passed 4 tests
This is a short check of server-side resources used by Jobs for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.58 ▲1.12 | 71.53 ▲32.38 |
Dashboard /wp-admin | 4.40 ▲1.10 | 67.90 ▲11.42 |
Posts /wp-admin/edit.php | 4.47 ▲1.11 | 61.05 ▲9.89 |
Add New Post /wp-admin/post-new.php | 7.00 ▲1.11 | 96.38 ▼13.45 |
Media Library /wp-admin/upload.php | 4.33 ▲1.10 | 56.36 ▲14.70 |
Settings /wp-admin/edit.php?post_type=jobs&page=jp-settings | 4.65 | 58.88 |
Help /wp-admin/edit.php?post_type=jobs&page=jp-help | 4.36 | 47.25 |
Add new position /wp-admin/post-new.php?post_type=jobs | 4.61 | 72.96 |
Categories /wp-admin/edit-tags.php?taxonomy=jobs_category&post_type=jobs | 4.33 | 51.04 |
All positions /wp-admin/edit.php?post_type=jobs | 4.38 | 47.39 |
Job entries /wp-admin/edit.php?post_type=job-entry | 4.38 | 46.84 |
Server storage [IO: ▲14.22MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 237 new files
Database: no new tables, 9 new options
New WordPress options |
---|
jobs_schema_type |
theysaidso_admin_options |
db_upgraded |
jobs_posts_per_page |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
jobs_preview_cta |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Jobs for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲178 | 13.31 ▼1.06 | 4.92 ▲3.13 | 36.20 ▼6.16 |
Dashboard /wp-admin | 2,317 ▲140 | 5.97 ▲0.41 | 103.89 ▲12.74 | 50.11 ▲1.97 |
Posts /wp-admin/edit.php | 2,224 ▲121 | 2.46 ▲0.43 | 41.67 ▼0.10 | 38.86 ▲1.52 |
Add New Post /wp-admin/post-new.php | 1,614 ▲86 | 23.37 ▲0.49 | 728.86 ▲136.63 | 36.91 ▼17.80 |
Media Library /wp-admin/upload.php | 1,519 ▲119 | 4.32 ▲0.05 | 116.54 ▲6.10 | 51.57 ▲6.06 |
Settings /wp-admin/edit.php?post_type=jobs&page=jp-settings | 3,551 | 4.44 | 80.94 | 94.28 |
Help /wp-admin/edit.php?post_type=jobs&page=jp-help | 1,543 | 3.37 | 50.42 | 104.67 |
Add new position /wp-admin/post-new.php?post_type=jobs | 9,441 | 16.89 | 619.11 | 214.24 |
Categories /wp-admin/edit-tags.php?taxonomy=jobs_category&post_type=jobs | 1,412 | 2.19 | 40.73 | 45.66 |
All positions /wp-admin/edit.php?post_type=jobs | 1,195 | 2.42 | 36.18 | 36.01 |
Job entries /wp-admin/edit.php?post_type=job-entry | 1,190 | 2.42 | 37.18 | 36.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- jobs_posts_per_page
- theysaidso_admin_options
- widget_theysaidso_widget
- jobs_schema_type
- jobs_preview_cta
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/job-postings/tcpdf/tools/tcpdf_addfont.php
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: post in wp-content/plugins/job-postings/include/views/job-confirmation.php on line 4
- > PHP Notice
Undefined variable: post in wp-content/plugins/job-postings/include/views/job-settings.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/job-postings/admin/tabs/fields.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/job-postings/include/views/job-confirmation.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/job-postings/templates/preview/job-preview.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/job-postings/include/views/job-settings.php:7
- > PHP Notice
Undefined variable: hide_empty in wp-content/plugins/job-postings/templates/include/job-categories.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/job-postings/include/views/job-notification.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/job-postings/templates/include/job-category-list.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/job-postings/tcpdf/tcpdf_include.php:27
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in job-postings/assets to your readme.txt
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
job-postings/job-postings.php Passed 13 tests
The main PHP file in "Jobs for WordPress" ver. 2.6.2 adds more information about the plugin and also serves as the entry point for this plugin
103 characters long description:
WordPress plugin that make it easy to add job postings to your company’s website in a structured way.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin62,915 lines of code in 123 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 3,914 | 12,526 | 53,506 |
CSS | 6 | 533 | 56 | 3,544 |
PO File | 5 | 1,102 | 810 | 3,426 |
JavaScript | 7 | 328 | 164 | 1,480 |
SVG | 28 | 4 | 1 | 849 |
Markdown | 1 | 21 | 0 | 63 |
JSON | 1 | 0 | 0 | 47 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 4,412)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 502)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 219.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,412.00 |
Average method complexity | 10.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 502.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 1 | 2.86% |
▷ Concrete classes | 34 | 97.14% |
▷ Final classes | 0 | 0.00% |
Methods | 833 | |
▷ Static methods | 215 | 25.81% |
▷ Public methods | 555 | 66.63% |
▷ Protected methods | 278 | 33.37% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 142 | |
▷ Global constants | 142 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
47 PNG files occupy 2.45MB with 1.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/select2.png | 0.51KB | 0.33KB | ▼ 34.94% |
admin/faq/faq-field-settings.png | 17.13KB | 4.79KB | ▼ 72.05% |
assets/screenshot-9.png | 95.99KB | 28.25KB | ▼ 70.57% |
admin/css/images/custom_hex.png | 0.55KB | 0.39KB | ▼ 28.11% |
admin/css/images/colorpicker_rgb_r.png | 1.04KB | 0.77KB | ▼ 26.17% |