100% easy-employee-management

Code Review | Easy Employee Management

WordPress plugin Easy Employee Management scored 100% from 54 tests.

About plugin

  • Plugin page: easy-employee-man...
  • Plugin version: 1.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8.4
  • WordPress version: 5.8.1
  • First release: Jan 25, 2018
  • Latest release: Jan 25, 2018
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: shraddha6883 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 440 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼146.45ms] Passed 4 tests

Analyzing server-side resources used by Easy Employee Management
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1639.65 ▲6.26
Dashboard /wp-admin3.11 ▲0.0647.12 ▼2.58
Posts /wp-admin/edit.php3.16 ▲0.0646.89 ▲0.07
Add New Post /wp-admin/post-new.php5.47 ▲0.0397.32 ▼579.48
Media Library /wp-admin/upload.php3.05 ▲0.0532.05 ▼3.82
Employee /wp-admin/edit.php?post_type=employee3.0936.48
Add New /wp-admin/post-new.php?post_type=employee3.0941.81

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Easy Employee Management
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,742 ▲14616.31 ▲0.7011.68 ▲2.1844.03 ▼3.05
Dashboard /wp-admin3,005 ▲685.91 ▼0.22148.36 ▼8.1499.73 ▼15.30
Posts /wp-admin/edit.php2,774 ▲352.71 ▲0.0077.33 ▼10.7586.81 ▼9.51
Add New Post /wp-admin/post-new.php1,695 ▲11418.88 ▼1.92399.37 ▼26.89112.65 ▼11.90
Media Library /wp-admin/upload.php1,842 ▲355.05 ▲0.03155.86 ▼7.31115.92 ▲1.89
Employee /wp-admin/edit.php?post_type=employee1,4832.6478.7481.29
Add New /wp-admin/post-new.php?post_type=employee2,0123.3397.0898.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

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 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
4 plugin tags: employee, employee list, easy employee management, employee management

easy-employee-management/easy_employee_management.php 92% from 13 tests

The primary PHP file in "Easy Employee Management" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-employee-management.php" instead of "easy_employee_management.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin173 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11710173

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin