77% locus-employee-cv

Code Review | Employee's List

WordPress plugin Employee's List scored77%from 54 tests.

About plugin

  • Plugin page: locus-employee-cv
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jan 17, 2017
  • Latest release: Jan 17, 2017
  • Number of updates: 9
  • Update frequency: every 2.6 days
  • Top authors: mdahammad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /513 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.68MB] [CPU: ▼24.16ms] Passed 4 tests

This is a short check of server-side resources used by Employee's List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.20 ▼3.30
Dashboard /wp-admin3.34 ▼0.0143.54 ▼28.43
Posts /wp-admin/edit.php3.39 ▲0.0348.09 ▲0.08
Add New Post /wp-admin/post-new.php3.12 ▼2.7633.79 ▼62.80
Media Library /wp-admin/upload.php3.26 ▲0.0331.37 ▼2.10
Employees Types /wp-admin/edit-tags.php?taxonomy=employee_type&post_type=employee_list3.3534.22
All Employees /wp-admin/edit.php?post_type=employee_list3.3141.58
Add New Employee /wp-admin/post-new.php?post_type=employee_list3.1230.28

Server storage [IO: ▲1.08MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Employee's List
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲18613.73 ▼0.576.00 ▲4.0542.92 ▼0.82
Dashboard /wp-admin2,242 ▲545.92 ▲1.02104.99 ▼8.7639.27 ▼9.03
Posts /wp-admin/edit.php2,128 ▲392.08 ▲0.0939.47 ▲0.1733.64 ▼1.50
Add New Post /wp-admin/post-new.php1,548 ▲1223.25 ▲0.11658.30 ▲23.4363.35 ▲10.44
Media Library /wp-admin/upload.php1,430 ▲424.24 ▼0.0394.86 ▲2.5639.46 ▼0.62
Employees Types /wp-admin/edit-tags.php?taxonomy=employee_type&post_type=employee_list1,3032.3729.8228.39
All Employees /wp-admin/edit.php?post_type=employee_list1,1062.0132.4531.83
Add New Employee /wp-admin/post-new.php?post_type=employee_list2,5127.89178.9972.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+230
    Undefined index: pname
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+231
    Undefined index: fname
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+232
    Undefined index: mname
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+233
    Undefined index: gender
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+234
    Undefined index: sscr
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+235
    Undefined index: sscy
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+236
    Undefined index: sscg
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+237
    Undefined index: hscr
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+238
    Undefined index: hscy
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+239
    Undefined index: hscg
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+240
    Undefined index: br
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+241
    Undefined index: by
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+242
    Undefined index: bg
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+243
    Undefined index: dn
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/locus-employee-cv/employee.php+244
    Undefined index: de

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/locus-employee-cv/employee.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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 to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === locus-employee-cv === )
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
The official readme.txt is a good inspiration

locus-employee-cv/employee.php 85% from 13 tests

"Employee's List" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("locus-employee-cv.php" instead of "employee.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin3,009 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP19914254
CSS222379
JavaScript1705

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin