Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▼128.12ms] Passed 4 tests
This is a short check of server-side resources used by Vacancy Personal Edition
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▲0.59 | 54.12 ▲16.78 |
Dashboard /wp-admin | 3.66 ▲0.60 | 62.58 ▲12.76 |
Posts /wp-admin/edit.php | 3.77 ▲0.66 | 58.21 ▲10.61 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.59 | 113.40 ▼551.09 |
Media Library /wp-admin/upload.php | 3.60 ▲0.60 | 51.86 ▲15.26 |
Calendar View /wp-admin/admin.php?page=va-admin-calendar | 3.60 | 92.44 |
Locations /wp-admin/edit.php?post_type=va_location | 3.64 | 46.42 |
Settings /wp-admin/admin.php?page=va-settings | 3.90 | 47.39 |
Venues /wp-admin/edit.php?post_type=va_venue | 3.64 | 56.10 |
Reservations /wp-admin/edit.php?post_type=va_reservation | 3.64 | 50.34 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 56 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Vacancy Personal Edition
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,908 ▲326 | 17.52 ▲1.57 | 23.60 ▲13.98 | 46.67 ▼3.55 |
Dashboard /wp-admin | 3,032 ▲98 | 6.84 ▲0.61 | 145.24 ▼31.64 | 107.93 ▲0.64 |
Posts /wp-admin/edit.php | 2,837 ▲98 | 3.07 ▲0.35 | 72.56 ▲0.32 | 96.64 ▲8.13 |
Add New Post /wp-admin/post-new.php | 1,731 ▲48 | 19.12 ▲0.94 | 409.61 ▼84.18 | 125.95 ▲17.20 |
Media Library /wp-admin/upload.php | 1,766 ▼41 | 5.49 ▲0.45 | 133.03 ▼44.44 | 81.68 ▼37.29 |
Calendar View /wp-admin/admin.php?page=va-admin-calendar | 1,584 | 2.79 | 69.69 | 81.59 |
Locations /wp-admin/edit.php?post_type=va_location | 1,506 | 3.01 | 70.67 | 72.12 |
Settings /wp-admin/admin.php?page=va-settings | 2,534 | 2.71 | 72.88 | 93.41 |
Venues /wp-admin/edit.php?post_type=va_venue | 1,518 | 2.94 | 80.88 | 78.36 |
Reservations /wp-admin/edit.php?post_type=va_reservation | 1,641 | 3.10 | 66.29 | 68.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/vacancy-personal-edition/va-reservation-meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/vacancy-personal-edition/va-location-meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/vacancy-personal-edition/va-admin-calendar.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/vacancy-personal-edition/va-venue-meta.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/vacancy-personal-edition/va-settings.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=va-admin-calendar
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse&ver=5.8.1 1:31592 "jQuery.Deferred exception: $(...).stickyTableHeaders is not a function" "TypeError: $(...).stickyTableHeaders is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=va-admin-calendar:315:14)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/admin.php?page=va-admin-calendar
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse&ver=5.8.1 1:31702 Uncaught TypeError: $(...).stickyTableHeaders is not a function
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
vacancy-personal-edition/vacancy.php 85% from 13 tests
"Vacancy Personal Edition" version 1.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("vacancy-personal-edition.php" instead of "vacancy.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin12,976 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 331 | 182 | 3,775 |
HTML | 3 | 64 | 0 | 3,167 |
PHP | 6 | 164 | 149 | 3,029 |
PO File | 2 | 570 | 635 | 1,472 |
CSS | 8 | 63 | 38 | 802 |
SVG | 1 | 0 | 0 | 399 |
Markdown | 3 | 94 | 0 | 207 |
JSON | 2 | 0 | 0 | 73 |
CoffeeScript | 1 | 13 | 6 | 52 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 403.00 |
▷ Minimum class complexity | 403.00 |
▷ Maximum class complexity | 403.00 |
Average method complexity | 10.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/chosen_v1.2.0/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
js/chosen_v1.2.0/docsupport/chosen.png | 1.47KB | 2.08KB | 0.00% |
js/chosen_v1.2.0/docsupport/oss-credit.png | 4.30KB | 3.26KB | ▼ 24.02% |
js/chosen_v1.2.0/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
images/dark_leather.png | 72.69KB | 76.07KB | 0.00% |