83% bne-vagas

Code Review | BNE - Vagas

WordPress plugin BNE - Vagas scored83%from 54 tests.

About plugin

  • Plugin page: bne-vagas
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.2-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 22, 2022
  • Latest release: Sep 28, 2022
  • Number of updates: 3
  • Update frequency: every 3.7 days
  • Top authors: bnevagas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /623 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
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
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1347.85 ▲12.27
Dashboard /wp-admin3.45 ▲0.1559.29 ▲9.15
Posts /wp-admin/edit.php3.55 ▲0.1957.96 ▲9.51
Add New Post /wp-admin/post-new.php6.03 ▲0.1497.38 ▼2.91
Media Library /wp-admin/upload.php3.37 ▲0.1443.69 ▲8.14
BNE /wp-admin/options-general.php?page=bne-config3.3640.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.302.22 ▲0.0644.71 ▼0.52
Dashboard /wp-admin2,213 ▲255.90 ▲0.85102.81 ▼4.5141.89 ▼0.56
Posts /wp-admin/edit.php2,093 ▲41.97 ▼0.0532.94 ▼4.7435.83 ▲0.67
Add New Post /wp-admin/post-new.php1,540 ▲523.23 ▲0.04666.33 ▼28.9458.16 ▲1.45
Media Library /wp-admin/upload.php1,395 ▲74.21 ▲0.0397.23 ▼8.7647.02 ▲0.63
BNE /wp-admin/options-general.php?page=bne-config8412.0326.4233.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP18233857696
CSS23613187
JavaScript15023

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 code0.17
Average class complexity3.31
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods65
▷ Static methods1726.15%
▷ Public methods5584.62%
▷ Protected methods00.00%
▷ Private methods1015.38%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants16.67%
▷ Class constants1493.33%
▷ Public constants14100.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
FileSize - originalSize - compressedSavings
public/img/logo-bne.png7.68KB4.46KB▼ 41.93%
assets/screenshot-3.png88.19KB34.40KB▼ 61.00%
assets/screenshot-1.png123.92KB46.14KB▼ 62.76%
assets/screenshot-2.png29.63KB13.77KB▼ 53.53%