Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼140.35ms] Passed 4 tests
This is a short check of server-side resources used by WP Staffing Customizer for WP Job Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.14 | 33.90 ▼0.68 |
Dashboard /wp-admin | 3.19 ▲0.14 | 48.80 ▲2.48 |
Posts /wp-admin/edit.php | 3.30 ▲0.20 | 48.61 ▲5.10 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.12 | 89.77 ▼564.31 |
Media Library /wp-admin/upload.php | 3.14 ▲0.13 | 32.97 ▲1.13 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP Staffing Customizer for WP Job Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,819 ▲223 | 16.31 ▲0.80 | 13.44 ▲1.38 | 46.85 ▼1.82 |
Dashboard /wp-admin | 2,977 ▲43 | 5.89 ▼0.06 | 152.57 ▼8.58 | 105.11 ▼1.63 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.72 ▼0.01 | 65.21 ▼3.06 | 87.09 ▲6.48 |
Add New Post /wp-admin/post-new.php | 1,688 ▲5 | 18.50 ▼0.24 | 392.22 ▼11.83 | 107.47 ▲2.17 |
Media Library /wp-admin/upload.php | 1,814 ▲4 | 5.04 ▲0.00 | 153.03 ▼10.75 | 109.89 ▼4.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-staffing-customizer-for-wp-job-manager/public/partials/wp-staffing-customizer-public-display.php
- > /wp-content/plugins/wp-staffing-customizer-for-wp-job-manager/admin/partials/wp-staffing-customizer-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (26 tag instead of maximum 10)
wp-staffing-customizer-for-wp-job-manager/wp-staffing-customizer.php 77% from 13 tests
The main PHP script in "WP Staffing Customizer for WP Job Manager" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("wp-staffing-customizer-for-wp-job-manager.php" instead of "wp-staffing-customizer.php")
- Description: The description should be shorter than 140 characters (currently 164 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected540 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 236 | 647 | 475 |
CSS | 2 | 8 | 8 | 51 |
JavaScript | 2 | 6 | 27 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 34 | 87.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.82% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.29MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 47.94KB | 27.51KB | ▼ 42.62% |
screenshot-3.png | 57.35KB | 38.69KB | ▼ 32.54% |
screenshot-4.png | 25.96KB | 16.98KB | ▼ 34.60% |
screenshot-2.png | 30.49KB | 18.49KB | ▼ 39.36% |
screenshot-6.png | 72.03KB | 43.09KB | ▼ 40.17% |