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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▲5.97ms] Passed 4 tests
A check of server-side resources used by BNE - Vagas
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 47.85 ▲12.27 |
Dashboard /wp-admin | 3.45 ▲0.15 | 59.29 ▲9.15 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 57.96 ▲9.51 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 97.38 ▼2.91 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 43.69 ▲8.14 |
BNE /wp-admin/options-general.php?page=bne-config | 3.36 | 40.26 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 158 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
bne_job_search_result_url |
can_compress_scripts |
bne_job_search_result_page_id |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
bne_job_search_results_per_page |
bne_job_search_result_rewrite_destin |
bne_job_search_result_rewrite_regex |
... |
Browser metrics Passed 4 tests
A check of browser resources used by BNE - Vagas
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲0.30 | 2.22 ▲0.06 | 44.71 ▼0.52 |
Dashboard /wp-admin | 2,213 ▲25 | 5.90 ▲0.85 | 102.81 ▼4.51 | 41.89 ▼0.56 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.05 | 32.94 ▼4.74 | 35.83 ▲0.67 |
Add New Post /wp-admin/post-new.php | 1,540 ▲5 | 23.23 ▲0.04 | 666.33 ▼28.94 | 58.16 ▲1.45 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▲0.03 | 97.23 ▼8.76 | 47.02 ▲0.63 |
BNE /wp-admin/options-general.php?page=bne-config | 841 | 2.03 | 26.42 | 33.41 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 11 options in the database
- theysaidso_admin_options
- bne_job_search_result_url
- bne_job_search_result_rewrite_destin
- widget_recent-comments
- bne_job_search_results_per_page
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- bne_job_search_result_rewrite_regex
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Interface 'I_Job_Integration' not found in wp-content/plugins/bne-vagas/includes/BNE_Job_Integration.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bne-vagas/admin/partials/bne-option-page-display.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bne-vagas/public/partials/bne-job-search-result-shortcode.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: vacancies, job listing, jobs
bne-vagas/bne.php 69% from 13 tests
"BNE - Vagas" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bne-vagas.php" instead of "bne.php")
- 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 401 characters long)
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin906 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 233 | 857 | 696 |
CSS | 2 | 36 | 13 | 187 |
JavaScript | 1 | 5 | 0 | 23 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 17 | 26.15% |
▷ Public methods | 55 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 15.38% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 1 | 6.67% |
▷ Class constants | 14 | 93.33% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.24MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/logo-bne.png | 7.68KB | 4.46KB | ▼ 41.93% |
assets/screenshot-3.png | 88.19KB | 34.40KB | ▼ 61.00% |
assets/screenshot-1.png | 123.92KB | 46.14KB | ▼ 62.76% |
assets/screenshot-2.png | 29.63KB | 13.77KB | ▼ 53.53% |