90% dadevarzan-wp-department

Code Review | Dadevarzan WordPress Department

WordPress plugin Dadevarzan WordPress Department scored90%from 54 tests.

About plugin

  • Plugin page: dadevarzan-wp-dep...
  • Plugin version: 1.1.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Feb 5, 2019
  • Latest release: May 31, 2022
  • Number of updates: 8
  • Update frequency: every 151.4 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /654 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.72ms] Passed 4 tests

This is a short check of server-side resources used by Dadevarzan WordPress Department
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.14 ▲3.17
Dashboard /wp-admin3.42 ▲0.1245.47 ▼2.96
Posts /wp-admin/edit.php3.53 ▲0.1749.02 ▲1.48
Add New Post /wp-admin/post-new.php6.11 ▲0.2284.54 ▼14.50
Media Library /wp-admin/upload.php3.34 ▲0.1136.43 ▲1.09

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Dadevarzan WordPress Department
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.35 ▼1.281.69 ▲0.0942.33 ▼0.97
Dashboard /wp-admin2,231 ▲435.84 ▲0.8295.58 ▼7.6438.19 ▼4.33
Posts /wp-admin/edit.php2,117 ▲282.02 ▲0.0233.20 ▼8.2733.89 ▼1.58
Add New Post /wp-admin/post-new.php1,559 ▲1717.81 ▼0.75655.84 ▲0.2955.91 ▼6.10
Media Library /wp-admin/upload.php1,422 ▲374.15 ▼0.01100.27 ▼2.0443.29 ▼5.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: dadevarzan, department, wordpress, dadehvarzan, wp

dadevarzan-wp-department/dadevarzan-wp-department.php Passed 13 tests

The main file in "Dadevarzan WordPress Department" v. 1.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
department post type for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected556 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23618478
PO File1323378

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.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
No PNG images were found in this plugin