10% wow-recruit-widget

Code Review | WOW Recruitment Widget

WordPress plugin WOW Recruitment Widget scored10%from 54 tests.

About plugin

  • Plugin page: wow-recruit-widget
  • Plugin version: 1.4.12
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.4.1
  • WordPress version: 6.3.1
  • First release: May 12, 2010
  • Latest release: Jan 25, 2016
  • Number of updates: 110
  • Update frequency: every 19.6 days
  • Top authors: freegod725 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /16,311 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.19 ▼1.275.63 ▼34.53
Dashboard /wp-admin2.21 ▼1.097.03 ▼42.65
Posts /wp-admin/edit.php2.21 ▼1.155.94 ▼37.63
Add New Post /wp-admin/post-new.php2.21 ▼3.686.93 ▼93.22
Media Library /wp-admin/upload.php2.21 ▼1.026.48 ▼26.35
WOW Recruit Widget /wp-admin/options-general.php?page=wow_recruit_options2.216.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.35 ▼0.002.02 ▲0.3040.47 ▼6.13
Dashboard /wp-admin2,204 ▲275.62 ▲0.0884.79 ▼12.6138.94 ▼4.15
Posts /wp-admin/edit.php2,106 ▲31.95 ▼0.0235.59 ▼4.4031.59 ▼3.87
Add New Post /wp-admin/post-new.php1,533 ▼223.17 ▲4.98637.78 ▼24.4159.51 ▼11.42
Media Library /wp-admin/upload.php1,409 ▲94.17 ▼0.0992.96 ▼12.3845.80 ▼1.29
WOW Recruit Widget /wp-admin/options-general.php?page=wow_recruit_options1,1012.1523.3828.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

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)
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP7117169616
Sass8247166
HTML114397
Bourne Shell121685
JSON10026
SVG2008
Markdown1206
CSS3003

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 code0.23
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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