Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/wp-careerjet-shortcode/wpcj.php+191
syntax error, unexpected 'public' (T_PUBLIC)
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.67ms] Passed 4 tests
This is a short check of server-side resources used by WP Careerjet Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.11 ▲4.50 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.75 ▼12.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.13 ▼1.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.40 ▼26.14 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.62 ▲0.75 |
Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Careerjet Shortcode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.07 | 1.88 ▲0.09 | 42.59 ▼4.63 |
Dashboard /wp-admin | 2,209 ▲24 | 5.86 ▼0.04 | 97.68 ▼4.90 | 39.99 ▼1.19 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.05 ▲0.01 | 38.21 ▼5.10 | 33.57 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 23.19 ▼0.05 | 658.01 ▼20.37 | 51.74 ▲3.34 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▲0.00 | 104.38 ▼4.15 | 43.35 ▼3.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC) in wp-content/plugins/wp-careerjet-shortcode/wpcj.php on line 191
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-careerjet-shortcode/wpcj-create-shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-careerjet-shortcode/wpcj-jobs-shortcode.php:256
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-careerjet-shortcode/wpcj-how-to.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-careerjet-shortcode/wpcj-searchbox-shortcode.php:18
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: job listing, affiliate jobs, careerjet, jobs, shortcode...
wp-careerjet-shortcode/wpcj.php 92% from 13 tests
The primary PHP file in "WP Careerjet Shortcode" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-careerjet-shortcode.php" instead of "wpcj.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,969 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 6 | 229 | 302 | 887 |
CSS | 3 | 28 | 12 | 314 |
JavaScript | 3 | 24 | 0 | 97 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/search-box.png | 8.15KB | 4.45KB | ▼ 45.40% |
img/wp-careerjet-logo.png | 13.47KB | 7.01KB | ▼ 47.95% |
img/job-listing.png | 7.75KB | 4.84KB | ▼ 37.48% |