Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wow-recruit-widget/inc/config.php+10
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.80MB] [CPU: ▼52.01ms] Passed 4 tests
Analyzing server-side resources used by WOW Recruitment Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 5.63 ▼34.53 |
Dashboard /wp-admin | 2.21 ▼1.09 | 7.03 ▼42.65 |
Posts /wp-admin/edit.php | 2.21 ▼1.15 | 5.94 ▼37.63 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.68 | 6.93 ▼93.22 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 6.48 ▼26.35 |
WOW Recruit Widget /wp-admin/options-general.php?page=wow_recruit_options | 2.21 | 6.31 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
wow_recruit |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_wow-recruit-widget |
widget_recent-posts |
Browser metrics Passed 4 tests
WOW Recruitment Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.35 ▼0.00 | 2.02 ▲0.30 | 40.47 ▼6.13 |
Dashboard /wp-admin | 2,204 ▲27 | 5.62 ▲0.08 | 84.79 ▼12.61 | 38.94 ▼4.15 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 1.95 ▼0.02 | 35.59 ▼4.40 | 31.59 ▼3.87 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.17 ▲4.98 | 637.78 ▼24.41 | 59.51 ▼11.42 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.17 ▼0.09 | 92.96 ▼12.38 | 45.80 ▼1.29 |
WOW Recruit Widget /wp-admin/options-general.php?page=wow_recruit_options | 1,101 | 2.15 | 23.38 | 28.70 |
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
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wow-recruit-widget/inc/widget.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; Wow_Recruit_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_wow-recruit-widget
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wow_recruit_options
- > Deprecated in wp-content/plugins/wow-recruit-widget/inc/widget.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; Wow_Recruit_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=wow_recruit_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Wow_Recruit_Widget is deprecated since version 4.3.0! Use __construct() instead.
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
Please take a closer look at the following
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wow-recruit-widget/tests/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wow-recruit-widget/tests/test-sample.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wow-recruit-widget/inc/widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wow-recruit-widget/inc/admin.php:5
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wow-recruit-widget/tests/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wow-recruit-widget/wow-recruit-widget.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wow-recruit-widget/inc/config.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Here is how it looks), #2 (Dark theme, small icons)
wow-recruit-widget/wow-recruit-widget.php 92% from 13 tests
The principal PHP file in "WOW Recruitment Widget" v. 1.4.12 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,007 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 117 | 169 | 616 |
Sass | 8 | 24 | 7 | 166 |
HTML | 1 | 14 | 3 | 97 |
Bourne Shell | 1 | 21 | 6 | 85 |
JSON | 1 | 0 | 0 | 26 |
SVG | 2 | 0 | 0 | 8 |
Markdown | 1 | 2 | 0 | 6 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
PNG images were not found in this plugin