Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-job-manager-shortwidget/includes/widget-job.php+308
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.67ms] Passed 4 tests
Analyzing server-side resources used by WP Job Manager ShortWidget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.94 ▼32.51 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.12 ▼42.48 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.24 ▼44.73 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.14 ▼82.97 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.89 ▼30.93 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_job_field-id |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_job-id |
widget_recent-comments |
widget_jobs-id |
widget_job_summary-id |
Browser metrics Passed 4 tests
Checking browser requirements for WP Job Manager ShortWidget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▼0.18 | 1.64 ▲0.17 | 36.19 ▼6.07 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.05 | 94.58 ▲9.64 | 42.03 ▼0.57 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.01 | 41.08 ▲3.87 | 35.64 ▼3.30 |
Add New Post /wp-admin/post-new.php | 1,635 ▲109 | 23.14 ▲0.25 | 684.64 ▼26.95 | 37.65 ▼17.72 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.13 | 91.93 ▼24.00 | 40.82 ▼6.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-job-manager-shortwidget/includes/widget-job.php+308
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 10 options
- widget_job-id
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_jobs-id
- widget_job_field-id
- widget_job_summary-id
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-job-manager-shortwidget/includes/field-textfield.php
- > /wp-content/plugins/wp-job-manager-shortwidget/includes/field-dropdown.php
- > /wp-content/plugins/wp-job-manager-shortwidget/includes/element-jobs.php
- > /wp-content/plugins/wp-job-manager-shortwidget/includes/element-submit_job_form.php
- 56× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/wp-job-manager-shortwidget/configs/fieldgroups-job_field.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-job-manager-shortwidget/configs/jobs-categories.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-job-manager-shortwidget/configs/jobs-ordering.php:15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-job-manager-shortwidget/includes/field-posttypeselector.php on line 3
- > PHP Notice
Undefined variable: id in wp-content/plugins/wp-job-manager-shortwidget/includes/field-dropdown.php on line 20
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/wp-job-manager-shortwidget/includes/element-job.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-job-manager-shortwidget/configs/jobs-filtering.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-job-manager-shortwidget/configs/jobs-pagination.php:15
- > PHP Notice
Undefined variable: groupid in wp-content/plugins/wp-job-manager-shortwidget/includes/field-textfield.php on line 1
- > PHP Notice
Undefined variable: settings in wp-content/plugins/wp-job-manager-shortwidget/includes/field-posttypeselector.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
wp-job-manager-shortwidget/plugincore.php 92% from 13 tests
This is the main PHP file of "WP Job Manager ShortWidget" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-job-manager-shortwidget.php" instead of "plugincore.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
No dangerous file extensions were detected2,650 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 474 | 737 | 1,816 |
CSS | 4 | 32 | 8 | 607 |
JavaScript | 5 | 24 | 23 | 202 |
PO File | 1 | 0 | 0 | 15 |
Markdown | 1 | 11 | 0 | 10 |
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 code | 0.46 |
Average class complexity | 51.33 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 5.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 18 | 24.00% |
▷ Public methods | 71 | 94.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.33% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/white.png | 0.67KB | 0.67KB | 0.00% |
assets/images/icon.png | 0.75KB | 0.50KB | ▼ 33.25% |