Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/wrapper-for-workable-api/inc/classes/class-workable-api-wrapper.php+72
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.84MB] [CPU: ▼54.67ms] Passed 4 tests
A check of server-side resources used by Workable Api
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 5.93 ▼33.61 |
Dashboard /wp-admin | 2.16 ▼1.14 | 7.30 ▼44.38 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 7.11 ▼41.56 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.72 | 6.10 ▼99.14 |
Media Library /wp-admin/upload.php | 2.16 ▼1.06 | 7.07 ▼30.55 |
Workable API /wp-admin/options-general.php?page=workable_api | 2.16 | 6.32 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Workable Api
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.38 ▼0.29 | 1.87 ▲0.07 | 44.64 ▼1.40 |
Dashboard /wp-admin | 2,227 ▲39 | 5.98 ▲1.10 | 106.96 ▲2.14 | 39.15 ▼6.14 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.76 ▲0.71 | 40.44 ▲2.48 | 31.34 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,527 ▲8 | 23.72 ▲0.61 | 689.41 ▲19.25 | 60.04 ▲1.18 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 5.26 ▲1.05 | 114.59 ▲18.01 | 44.79 ▼1.26 |
Workable API /wp-admin/options-general.php?page=workable_api | 849 | 2.50 | 33.28 | 28.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wrapper-for-workable-api/inc/classes/class-workable-api-wrapper.php+72
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=workable_api
- > Notice in wp-content/plugins/wrapper-for-workable-api/inc/classes/class-workable-api-wrapper.php+74
Trying to access array offset on value of type bool
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wrapper-for-workable-api/inc/classes/class-workable-api.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wrapper-for-workable-api/tests/test-sample.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wrapper-for-workable-api/tests/bootstrap.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wrapper-for-workable-api/inc/classes/class-workable-api-admin.php:388
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=workable_api
- > Network (severe)
wp-content/plugins/wp-workable/inc/css/style.css?ver=1696843752 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=workable_api
- > Network (severe)
wp-content/plugins/wp-workable/inc/js/functionality.js?ver=1696843752 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: job listing, job board, jobs, careers, workable
wrapper-for-workable-api/workable-api.php 77% from 13 tests
The main PHP file in "Workable Api" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("wrapper-for-workable-api.php" instead of "workable-api.php")
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin782 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 151 | 535 | 507 |
Bourne Shell | 1 | 21 | 11 | 120 |
JavaScript | 1 | 9 | 12 | 87 |
CSS | 1 | 11 | 1 | 68 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 80.00% |
▷ Protected methods | 1 | 3.33% |
▷ Private methods | 5 | 16.67% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
1 PNG file occupies 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 218.20KB | 91.48KB | ▼ 58.07% |