77% standard-employee-list

Code Review | Standard Employee List

WordPress plugin Standard Employee List scored77%from 54 tests.

About plugin

  • Plugin page: standard-employee...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 20, 2016
  • Latest release: Mar 20, 2016
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: sujon3g (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /638 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.62MB] [CPU: ▼13.51ms] Passed 4 tests

A check of server-side resources used by Standard Employee List
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.93 ▲0.21
Dashboard /wp-admin3.38 ▲0.0844.36 ▼0.87
Posts /wp-admin/edit.php3.43 ▲0.0843.12 ▲0.93
Add New Post /wp-admin/post-new.php3.16 ▼2.7233.92 ▼54.31
Media Library /wp-admin/upload.php3.30 ▲0.0837.60 ▲3.07
All Employee /wp-admin/edit.php?post_type=employee_list3.3535.09
Add New /wp-admin/post-new.php?post_type=employee_list3.1632.04
Employee Type /wp-admin/edit-tags.php?taxonomy=employee_type&post_type=employee_list3.3033.48

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Standard Employee List
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.74 ▲0.131.78 ▲0.1634.89 ▼5.84
Dashboard /wp-admin2,225 ▲515.62 ▲0.0984.65 ▼2.1438.21 ▼2.26
Posts /wp-admin/edit.php2,136 ▲362.04 ▲0.0140.05 ▲5.1936.74 ▼0.68
Add New Post /wp-admin/post-new.php1,554 ▲2623.18 ▲0.06638.07 ▼1.2964.83 ▲10.57
Media Library /wp-admin/upload.php1,430 ▲274.23 ▲0.01112.06 ▲15.7846.16 ▲3.37
All Employee /wp-admin/edit.php?post_type=employee_list1,1141.9632.8429.47
Add New /wp-admin/post-new.php?post_type=employee_list2,4577.86188.6264.22
Employee Type /wp-admin/edit-tags.php?taxonomy=employee_type&post_type=employee_list1,3132.2527.1928.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/standard-employee-list/init.php+178
    Undefined index: father
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/standard-employee-list/init.php+179
    Undefined index: mother
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/standard-employee-list/init.php+180
    Undefined index: gender
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/standard-employee-list/init.php+181
    Undefined index: designation
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/standard-employee-list/init.php+182
    Undefined index: mobile
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/standard-employee-list/init.php+183
    Undefined index: email
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/standard-employee-list/init.php+184
    Undefined index: sscyear
    • > GET request to /wp-admin/post-new.php?post_type=employee_list
    • > Notice in wp-content/plugins/standard-employee-list/init.php+185
    Undefined index: skills

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/standard-employee-list/init.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === standard-employee-list === )
  • Screenshots: These screenshots require images: #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)
  • Contributors: Plugin contributors not specified
The official readme.txt is a good inspiration

standard-employee-list/init.php 92% from 13 tests

"Standard Employee List" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("standard-employee-list.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin368 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1729230
CSS220132
JavaScript1306

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected