90% dadevarzan-wp-branch

Code Review | Dadevarzan WordPress Branch

WordPress plugin Dadevarzan WordPress Branch scored 90% from 54 tests.

About plugin

  • Plugin page: dadevarzan-wp-branch
  • Plugin version: 1.3.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Jan 30, 2019
  • Latest release: May 31, 2022
  • Number of updates: 10
  • Update frequency: every 121.7 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,056 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼6.34ms] Passed 4 tests

Analyzing server-side resources used by Dadevarzan WordPress Branch
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1538.95 ▲0.13
Dashboard /wp-admin3.44 ▲0.1448.31 ▲2.36
Posts /wp-admin/edit.php3.54 ▲0.1949.91 ▲0.56
Add New Post /wp-admin/post-new.php6.13 ▲0.2484.51 ▼25.66
Media Library /wp-admin/upload.php3.36 ▲0.1334.13 ▼0.39

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

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

Browser metrics Passed 4 tests

Dadevarzan WordPress Branch: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9913.62 ▼1.141.57 ▼0.0140.43 ▼2.98
Dashboard /wp-admin2,240 ▲494.88 ▲0.0098.47 ▼2.6641.16 ▼2.91
Posts /wp-admin/edit.php2,120 ▲282.06 ▲0.0038.54 ▼0.9737.41 ▲1.66
Add New Post /wp-admin/post-new.php1,562 ▲3423.32 ▲4.87639.97 ▲35.5550.32 ▼3.72
Media Library /wp-admin/upload.php1,422 ▲404.24 ▲0.0195.38 ▼6.7041.02 ▼6.54

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: wp, dadehvarzan, dadevarzan, branch, wordpress

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

This is the main PHP file of "Dadevarzan WordPress Branch" version 1.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
30 characters long description:
branch post type for wordpress

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
There were no executable files found in this plugin560 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27717485
PO File1283070
JavaScript1305

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods872.73%
▷ Public methods1090.91%
▷ Protected methods19.09%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin