Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.97ms] Passed 4 tests
Analyzing server-side resources used by WPJM Related Jobs
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.74 ▼1.28 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.09 ▲0.56 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.62 ▼1.85 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.21 ▼9.31 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.81 ▲1.04 |
Related Jobs /wp-admin/options-general.php?page=wpjm-realted-jobs-setting | 3.21 | 29.12 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
wpjm_related_jobs |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WPJM Related Jobs
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.19 ▼1.21 | 1.66 ▲0.02 | 41.43 ▼0.91 |
Dashboard /wp-admin | 2,217 ▲26 | 4.87 ▼0.01 | 107.34 ▼15.54 | 40.81 ▲0.14 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.97 ▼0.00 | 36.59 ▼2.46 | 32.28 ▼3.98 |
Add New Post /wp-admin/post-new.php | 1,537 ▼0 | 23.56 ▲0.68 | 664.89 ▲18.68 | 46.61 ▼25.36 |
Media Library /wp-admin/upload.php | 1,390 ▲5 | 4.21 ▼0.11 | 98.22 ▼3.85 | 41.39 ▼3.05 |
Related Jobs /wp-admin/options-general.php?page=wpjm-realted-jobs-setting | 995 | 2.14 | 23.03 | 28.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- 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 short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpjm-related-jobs/includes/options-setting.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/wpjm-related-jobs/includes/wpse-or-query.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wpjm-related-jobs ===
) - Tags: There are too many tags (35 tag instead of maximum 10)
wpjm-related-jobs/wpjm-related-jobs.php 85% from 13 tests
The entry point to "WPJM Related Jobs" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 162 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected433 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 72 | 117 | 370 |
PO File | 1 | 23 | 24 | 62 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of 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.29 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 20.31KB | 7.27KB | ▼ 64.23% |
assets/screenshot-2.png | 31.80KB | 14.26KB | ▼ 55.15% |