83% wp-recruit

Code Review | Eezy Recruit

WordPress plugin Eezy Recruit scored 83% from 54 tests.

About plugin

  • Plugin page: wp-recruit
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 6, 2019
  • Latest release: Jul 6, 2019
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: eddysalzmann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 707 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.73ms] Passed 4 tests

Analyzing server-side resources used by Eezy Recruit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.37 ▼2.25
Dashboard /wp-admin3.39 ▲0.0847.34 ▼4.89
Posts /wp-admin/edit.php3.50 ▲0.1549.16 ▼1.80
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.69 ▼1.97
Media Library /wp-admin/upload.php3.31 ▲0.0834.36 ▲0.03
Eezy Recruit /wp-admin/options-general.php?page=eezy-recruit3.2531.34

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Eezy Recruit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲15513.58 ▼0.805.48 ▲3.5042.70 ▼0.18
Dashboard /wp-admin2,213 ▲345.89 ▲0.00105.65 ▼10.0636.85 ▼18.01
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0638.64 ▲2.4234.02 ▲3.27
Add New Post /wp-admin/post-new.php1,537 ▲223.13 ▼0.19629.24 ▼57.7358.21 ▼0.71
Media Library /wp-admin/upload.php1,392 ▲44.18 ▼0.0495.61 ▼9.1543.67 ▼0.82
Eezy Recruit /wp-admin/options-general.php?page=eezy-recruit8802.0322.5828.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=eezy-recruit
    • > Notice in wp-content/plugins/wp-recruit/eezy-recruit.php+234
    Trying to access array offset on value of type bool

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add a description for screenshot #3 in wp-recruit/assets to your readme.txt
Please take inspiration from this readme.txt

wp-recruit/eezy-recruit.php 85% from 13 tests

"Eezy Recruit" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and 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: The principal plugin file should be the same as the plugin slug ("wp-recruit.php" instead of "eezy-recruit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected495 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP113333459
Markdown18027
JavaScript1308
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected