90% dadevarzan-wp-personnel

Code Review | Dadevarzan WordPress Personnel

WordPress plugin Dadevarzan WordPress Personnel scored90%from 54 tests.

About plugin

  • Plugin page: dadevarzan-wp-per...
  • Plugin version: 1.2.3
  • 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 20, 2019
  • Latest release: May 31, 2022
  • Number of updates: 10
  • Update frequency: every 119.6 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,334 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.04ms] Passed 4 tests

Analyzing server-side resources used by Dadevarzan WordPress Personnel
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1143.42 ▼0.77
Dashboard /wp-admin3.41 ▲0.1046.61 ▼6.29
Posts /wp-admin/edit.php3.51 ▲0.1550.12 ▲0.96
Add New Post /wp-admin/post-new.php6.10 ▲0.2194.09 ▼0.56
Media Library /wp-admin/upload.php3.33 ▲0.1034.53 ▼0.55

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Dadevarzan WordPress Personnel: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9913.57 ▼0.721.84 ▼0.0840.01 ▼10.68
Dashboard /wp-admin2,234 ▲464.82 ▼1.05105.95 ▼9.0442.92 ▼2.45
Posts /wp-admin/edit.php2,120 ▲312.02 ▼0.0342.13 ▲3.6336.20 ▲0.39
Add New Post /wp-admin/post-new.php1,568 ▲4818.25 ▼4.94615.98 ▼67.1166.07 ▲6.13
Media Library /wp-admin/upload.php1,419 ▲314.25 ▲0.0597.78 ▼1.6143.43 ▼2.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
5 plugin tags: dadehvarzan, wordpress, wp, personnel, dadevarzan

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

The principal PHP file in "Dadevarzan WordPress Personnel" v. 1.2.3 is loaded by WordPress automatically on each request
33 characters long description:
personnel post type for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected363 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23718308
PO File1202255

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were 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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin