84% simple-employee-list

Code Review | Employee List

WordPress plugin Employee List scored84%from 54 tests.

About plugin

  • Plugin page: simple-employee-list
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Jul 23, 2022
  • Latest release: Jul 23, 2022
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: mohibbulla (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /198 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.93ms] Passed 4 tests

This is a short check of server-side resources used by Employee List
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.12 ▼1.89
Dashboard /wp-admin3.35 ▲0.0149.23 ▼11.96
Posts /wp-admin/edit.php3.41 ▲0.0551.52 ▲1.89
Add New Post /wp-admin/post-new.php5.96 ▲0.0797.87 ▲3.70
Media Library /wp-admin/upload.php3.28 ▲0.0535.96 ▼7.76
Employee /wp-admin/edit.php?post_type=employee-post-type3.3237.16
Add Employee /wp-admin/post-new.php?post_type=employee-post-type3.3345.41

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Employee List
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.59 ▼0.779.07 ▲7.5424.72 ▼19.24
Dashboard /wp-admin2,226 ▲524.86 ▼0.7384.14 ▼8.5347.05 ▲7.77
Posts /wp-admin/edit.php2,134 ▲342.25 ▲0.2438.55 ▲2.4841.30 ▲5.68
Add New Post /wp-admin/post-new.php1,707 ▲2822.66 ▲0.68649.03 ▼27.7362.85 ▼2.34
Media Library /wp-admin/upload.php1,434 ▲344.36 ▲0.15102.77 ▼8.5450.79 ▲1.55
Employee /wp-admin/edit.php?post_type=employee-post-type1,1012.1835.3034.06
Add Employee /wp-admin/post-new.php?post_type=employee-post-type1,7033.7265.4336.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-employee-list/simple-employee-list.php

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: team, employee, employee-list, list, simple-employee-list...

simple-employee-list/simple-employee-list.php 85% from 13 tests

The primary PHP file in "Employee List" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.2")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin164 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12030162
CSS1061
JavaScript1061

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions9
▷ Named functions9100.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
There were not PNG files found in your plugin